promotional bannermobile promotional banner

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:

java
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 blockEntity is not an instance of Clearable,
    the tag is reset to contain only the id field 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 Team

profile avatar
  • 6
    Projects
  • 2.1K
    Downloads

More from yansunskyView all

  • Sweeper Maid: Paged Dustbin project image

    Sweeper Maid: Paged Dustbin

    A server-side cleanup mod whose dustbin keeps paging instead of overflowing.

    • 4
    • November 11, 2026
  • Create:CompactMachinesPOR project image

    Create:CompactMachinesPOR

    CreateCMPOR — Automatically evaluate your Compact Machines room, turn its production line into a replicating factory block that keeps producing forever.

    • 286
    • November 9, 2026
  • Create Clipboard Box project image

    Create Clipboard Box

    Expands your Create clipboard into a complete bill of materials, then automatically gathers the ingredients from bound storage, crafts them, and deposits the results.

    • 53
    • October 13, 2026
  • MineZeroExtension project image

    MineZeroExtension

    MineZero Extension — addon that adds Sophisticated Backpacks and Curios API compatibility and an intelligent condition-based auto-checkpoint system with cascading probability gates to MineZero's death-loop mechanic.

    • 255
    • September 4, 2026
  • Sweeper Maid: Paged Dustbin project image

    Sweeper Maid: Paged Dustbin

    A server-side cleanup mod whose dustbin keeps paging instead of overflowing.

    • 4
    • November 11, 2026
  • Create:CompactMachinesPOR project image

    Create:CompactMachinesPOR

    CreateCMPOR — Automatically evaluate your Compact Machines room, turn its production line into a replicating factory block that keeps producing forever.

    • 286
    • November 9, 2026
  • Create Clipboard Box project image

    Create Clipboard Box

    Expands your Create clipboard into a complete bill of materials, then automatically gathers the ingredients from bound storage, crafts them, and deposits the results.

    • 53
    • October 13, 2026
  • MineZeroExtension project image

    MineZeroExtension

    MineZero Extension — addon that adds Sophisticated Backpacks and Curios API compatibility and an intelligent condition-based auto-checkpoint system with cascading probability gates to MineZero's death-loop mechanic.

    • 255
    • September 4, 2026