From 2315625c4b244ab1c7a4fad6b202693af500496b Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Sat, 6 Feb 2021 18:11:35 +0100 Subject: [PATCH] Quickfix - Fixed gantry shafts able to cause loops in kinetic connectivity when switching to powered state --- .../contraptions/relays/advanced/GantryShaftBlock.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/GantryShaftBlock.java b/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/GantryShaftBlock.java index 15cd24040..6fa9bd927 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/GantryShaftBlock.java +++ b/src/main/java/com/simibubi/create/content/contraptions/relays/advanced/GantryShaftBlock.java @@ -187,13 +187,9 @@ public class GantryShaftBlock extends DirectionalKineticBlock { toUpdate.add(pos); for (BlockPos blockPos : toUpdate) { BlockState blockState = worldIn.getBlockState(blockPos); - - if (!shouldPower) { - TileEntity te = worldIn.getTileEntity(blockPos); - if (te instanceof KineticTileEntity) - ((KineticTileEntity) te).detachKinetics(); - } - + TileEntity te = worldIn.getTileEntity(blockPos); + if (te instanceof KineticTileEntity) + ((KineticTileEntity) te).detachKinetics(); if (blockState.getBlock() instanceof GantryShaftBlock) worldIn.setBlockState(blockPos, blockState.with(POWERED, shouldPower), 2); }