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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue