mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 06:24:29 +01:00
Avoid unnecessary piston contraption assembling
This commit is contained in:
parent
dae651c046
commit
2d2c7e653f
@ -46,6 +46,8 @@ public class MechanicalPistonTileEntity extends LinearActuatorTileEntity {
|
|||||||
if (!(world.getBlockState(pos)
|
if (!(world.getBlockState(pos)
|
||||||
.getBlock() instanceof MechanicalPistonBlock))
|
.getBlock() instanceof MechanicalPistonBlock))
|
||||||
return;
|
return;
|
||||||
|
if (getMovementSpeed() == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
Direction direction = getBlockState().get(BlockStateProperties.FACING);
|
Direction direction = getBlockState().get(BlockStateProperties.FACING);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user