mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 08:27:03 +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)
|
||||
.getBlock() instanceof MechanicalPistonBlock))
|
||||
return;
|
||||
if (getMovementSpeed() == 0)
|
||||
return;
|
||||
|
||||
Direction direction = getBlockState().get(BlockStateProperties.FACING);
|
||||
|
||||
|
|
Loading…
Reference in a new issue