DoorSoundInteractionHandler: ignore iron [trap]doors (#1343)

This commit is contained in:
Camotoy 2020-09-29 13:21:43 -04:00 committed by GitHub
parent 9bb52afc8a
commit aee9ccc7d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,7 @@ public class DoorSoundInteractionHandler implements BlockSoundInteractionHandler
@Override
public void handleInteraction(GeyserSession session, Vector3f position, String identifier) {
if (identifier.contains("iron")) return;
LevelEventPacket levelEventPacket = new LevelEventPacket();
levelEventPacket.setType(LevelEventType.SOUND_DOOR_OPEN);
levelEventPacket.setPosition(position);