Counter balance

- Elevator contacts no longer cause observer updates whenever an elevator is leaving
This commit is contained in:
simibubi 2022-11-01 14:25:04 +01:00
parent da5b752e1f
commit 9498dacfc9

View file

@ -99,7 +99,7 @@ public class ElevatorContactBlock extends WrenchableDirectionalBlock
BlockState otherState = pLevel.getBlockState(otherPos); BlockState otherState = pLevel.getBlockState(otherPos);
if (!AllBlocks.ELEVATOR_CONTACT.has(otherState)) if (!AllBlocks.ELEVATOR_CONTACT.has(otherState))
continue; continue;
pLevel.setBlock(otherPos, otherState.setValue(CALLING, false), 2); pLevel.setBlock(otherPos, otherState.setValue(CALLING, false), 2 | 16);
scheduleActivation(pLevel, otherPos); scheduleActivation(pLevel, otherPos);
} }
@ -133,7 +133,7 @@ public class ElevatorContactBlock extends WrenchableDirectionalBlock
shouldBePowering |= RedstoneContactBlock.hasValidContact(pLevel, pPos, pState.getValue(FACING)); shouldBePowering |= RedstoneContactBlock.hasValidContact(pLevel, pPos, pState.getValue(FACING));
if (wasPowering || shouldBePowering) if (wasPowering || shouldBePowering)
pLevel.setBlock(pPos, pState.setValue(POWERING, shouldBePowering), 2); pLevel.setBlock(pPos, pState.setValue(POWERING, shouldBePowering), 2 | 16);
pLevel.updateNeighborsAt(pPos, this); pLevel.updateNeighborsAt(pPos, this);
} }