From 2d2c7e653f3db9ccce0c2557fee8fd182351916e Mon Sep 17 00:00:00 2001 From: Snownee Date: Sat, 13 Feb 2021 14:14:28 +0800 Subject: [PATCH] Avoid unnecessary piston contraption assembling --- .../structureMovement/piston/MechanicalPistonTileEntity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/piston/MechanicalPistonTileEntity.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/piston/MechanicalPistonTileEntity.java index bb8c2ff7e..e64ed67e8 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/piston/MechanicalPistonTileEntity.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/piston/MechanicalPistonTileEntity.java @@ -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);