Merge pull request #5192 from laxadeR/fix-elevator-contacts

Fixed wrong elevator contacts powering sometimes
This commit is contained in:
simibubi 2023-09-20 10:00:34 +02:00 committed by GitHub
commit 72882f89c0
Failed to generate hash of commit

View file

@ -89,7 +89,7 @@ public class ElevatorPulleyBlockEntity extends PulleyBlockEntity {
if (level.isClientSide())
targetLevel = ec.clientYTarget;
if (!wasArrived && !level.isClientSide()) {
triggerContact(ec, targetLevel);
triggerContact(ec, targetLevel - ec.contactYOffset);
AllSoundEvents.CONTRAPTION_DISASSEMBLE.play(level, null, worldPosition.below((int) offset), 0.75f, 0.8f);
}