mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-01 09:57:12 +01:00
Avoid unnecessary piston contraption assembling
This commit is contained in:
parent
dae651c046
commit
2d2c7e653f
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue