Merge branch 'mc1.18/dev' of https://github.com/Creators-of-Create/Create into mc1.18/dev

This commit is contained in:
simibubi 2024-07-25 18:47:15 +02:00
commit f8cc7ab73c
2 changed files with 6 additions and 2 deletions

View File

@ -364,6 +364,10 @@ public class StationBlockEntity extends SmartBlockEntity implements ITransformab
if (!tryEnterAssemblyMode()) if (!tryEnterAssemblyMode())
return false; return false;
//Check the station wasn't destroyed
if (!(level.getBlockState(worldPosition).getBlock() instanceof StationBlock))
return true;
BlockState newState = getBlockState().setValue(StationBlock.ASSEMBLING, true); BlockState newState = getBlockState().setValue(StationBlock.ASSEMBLING, true);
level.setBlock(getBlockPos(), newState, 3); level.setBlock(getBlockPos(), newState, 3);
refreshBlockState(); refreshBlockState();