Sable Dupe fix
Fix for the item duplication issue with the Physics Assembler in the Aeronautics mod.
介绍
Sable Dupe Fix
Fixes a duplication bug in Sable when assembling non‑Clearable containers (e.g. Create’s Table Cloth, Depot, Belt).
What is the bug?
In SubLevelAssemblyHelper.moveBlocks, Sable checks:
if (blockEntity instanceof Clearable clearable) { clearable.clearContent(); // standard containers: clear items at the old position }
Some third‑party containers (like Create’s Table Cloth, Depot, Belt) do not implement Clearable.
As a result, the items in the old position are not cleared, while the new position loads a duplicate copy via loadWithComponents(tag, ...).
This causes the item count to double.
How the fix works
A lightweight Mixin is injected into SubLevelAssemblyHelper.moveBlocks:
-
When the
blockEntityis not an instance ofClearable,
thetagis reset to contain only theidfield plus coordinate fields. -
Then
loadWithComponents(tag, ...)loads the container at the new position in a factory‑fresh state – with no items.
Compatibility
-
Minecraft 1.21.1
-
NeoForge 21.1.219+
-
Sable 1.2.2+
常见问题
Sable Dupe fix 支持哪些 Minecraft 版本?
Sable Dupe fix 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Sable Dupe fix 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分