mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-02-05 18:05:00 +01:00
Added station blockstate check
This commit is contained in:
parent
2201d87da7
commit
378e970005
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue