From c7a75f8ffd01e09eea68be827d296030da56ca4c Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Mon, 3 Oct 2022 00:31:42 +0200 Subject: [PATCH] Subcontraption Overlap - Fixes #3871 --- .../components/structureMovement/Contraption.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/Contraption.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/Contraption.java index 592fe6307..51655a236 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/Contraption.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/Contraption.java @@ -133,6 +133,7 @@ public abstract class Contraption { public BlockPos anchor; public boolean stalled; public boolean hasUniversalCreativeCrate; + public boolean disassembled; protected Map blocks; protected List> actors; @@ -1001,6 +1002,10 @@ public abstract class Contraption { } public void addBlocksToWorld(Level world, StructureTransform transform) { + if (disassembled) + return; + disassembled = true; + for (boolean nonBrittles : Iterate.trueAndFalse) { for (StructureBlockInfo block : blocks.values()) { if (nonBrittles == BlockMovementChecks.isBrittle(block.state))