From 9498dacfc9a05329306f16a5ef62ac5353f4f171 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Tue, 1 Nov 2022 14:25:04 +0100 Subject: [PATCH] Counter balance - Elevator contacts no longer cause observer updates whenever an elevator is leaving --- .../structureMovement/elevator/ElevatorContactBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/elevator/ElevatorContactBlock.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/elevator/ElevatorContactBlock.java index c0e48e3e8..702238fda 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/elevator/ElevatorContactBlock.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/elevator/ElevatorContactBlock.java @@ -99,7 +99,7 @@ public class ElevatorContactBlock extends WrenchableDirectionalBlock BlockState otherState = pLevel.getBlockState(otherPos); if (!AllBlocks.ELEVATOR_CONTACT.has(otherState)) continue; - pLevel.setBlock(otherPos, otherState.setValue(CALLING, false), 2); + pLevel.setBlock(otherPos, otherState.setValue(CALLING, false), 2 | 16); scheduleActivation(pLevel, otherPos); } @@ -133,7 +133,7 @@ public class ElevatorContactBlock extends WrenchableDirectionalBlock shouldBePowering |= RedstoneContactBlock.hasValidContact(pLevel, pPos, pState.getValue(FACING)); if (wasPowering || shouldBePowering) - pLevel.setBlock(pPos, pState.setValue(POWERING, shouldBePowering), 2); + pLevel.setBlock(pPos, pState.setValue(POWERING, shouldBePowering), 2 | 16); pLevel.updateNeighborsAt(pPos, this); }