Create Vault Fix
一个轻量级的客户端兼容性补丁,用于在使用 Create Item Vault 与 Relics 或 Artifacts 模组同时运行时防止崩溃。
问题所在
当你在额外的物品栏槽位中装备了来自 Relics 或 Artifacts 模组的物品,并尝试打开 Create Item Vault 时,游戏会崩溃并显示以下错误:
java.lang.IndexOutOfBoundsException: Index 36 out of bounds for length 36
at net.minecraft.world.inventory.AbstractContainerMenu.getSlot()
这是由于 Curios 附加背包槽位与 Create 自定义容器菜单交互时,服务器与客户端之间的槽位同步问题导致的。
解决方案
该模组在客户端拦截无效的容器槽位更新数据包,防止其引发 IndexOutOfBoundsException。它会安全地取消处理引用当前菜单中不存在的槽位索引的数据包。
已知限制
在极少数情况下,你可能会在 Vault 界面经历短暂的视觉不同步(某个槽位可能暂时不会视觉上更新)。任何物品栏交互都会立即解决此问题,这是为了防止完全崩溃而做出的轻微视觉妥协。
要求
- Minecraft 1.21.1
- NeoForge 21.1.192+
- Create(任意 1.21.1 版本)
- Relics 或 Artifacts(可选,但正是它们导致了崩溃)
安装方法
- 为 Minecraft 1.21.1 安装 NeoForge
- 将
createvaultfix-1.0.0.jar 放入你的 mods 文件夹
- 启动游戏
无需在服务器端安装!
许可证
MIT 许可证 - 欢迎自由使用、修改和分发。
Git 仓库
Create Vault Fix
A lightweight client-side compatibility patch that prevents crashes when using Create Item Vault together with Relics or Artifacts mods.
The Problem
When you have items from Relics or Artifacts mods equipped in your additional inventory slots and try to open a Create Item Vault, the game crashes with:
java.lang.IndexOutOfBoundsException: Index 36 out of bounds for length 36
at net.minecraft.world.inventory.AbstractContainerMenu.getSlot()
This happens because of a slot synchronization issue between the server and client when Curios-based additional inventory slots interact with Create's custom container menu.
The Solution
This mod intercepts invalid container slot update packets on the client side before they can cause an IndexOutOfBoundsException. It safely cancels processing of packets that reference non-existent slot indices in the current menu.
Known Limitations
In rare cases, you might experience a brief visual desync in the vault interface (a slot might not update visually for a moment). This resolves instantly with any inventory interaction and is a minor visual trade-off to prevent a complete game crash.
Requirements
- Minecraft 1.21.1
- NeoForge 21.1.192+
- Create (any 1.21.1 version)
- Relics OR Artifacts (optional, but this is what causes the crash)
Installation
- Install NeoForge for Minecraft 1.21.1
- Place
createvaultfix-1.0.0.jar in your mods folder
- Launch the game
No server-side installation needed!
License
MIT License - feel free to use, modify, and distribute.
Git
评论 0
登录后参与评分
还没有评论,来抢沙发吧