mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-11 04:54:28 +01:00
parent
0098f0e147
commit
c7a75f8ffd
@ -133,6 +133,7 @@ public abstract class Contraption {
|
||||
public BlockPos anchor;
|
||||
public boolean stalled;
|
||||
public boolean hasUniversalCreativeCrate;
|
||||
public boolean disassembled;
|
||||
|
||||
protected Map<BlockPos, StructureBlockInfo> blocks;
|
||||
protected List<MutablePair<StructureBlockInfo, MovementContext>> 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))
|
||||
|
Loading…
Reference in New Issue
Block a user