mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-14 21:03:42 +01:00
Counter balance
- Elevator contacts no longer cause observer updates whenever an elevator is leaving
This commit is contained in:
parent
da5b752e1f
commit
9498dacfc9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue