mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
DoorSoundInteractionHandler: ignore iron [trap]doors (#1343)
This commit is contained in:
parent
9bb52afc8a
commit
aee9ccc7d2
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ public class DoorSoundInteractionHandler implements BlockSoundInteractionHandler
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handleInteraction(GeyserSession session, Vector3f position, String identifier) {
|
public void handleInteraction(GeyserSession session, Vector3f position, String identifier) {
|
||||||
|
if (identifier.contains("iron")) return;
|
||||||
LevelEventPacket levelEventPacket = new LevelEventPacket();
|
LevelEventPacket levelEventPacket = new LevelEventPacket();
|
||||||
levelEventPacket.setType(LevelEventType.SOUND_DOOR_OPEN);
|
levelEventPacket.setType(LevelEventType.SOUND_DOOR_OPEN);
|
||||||
levelEventPacket.setPosition(position);
|
levelEventPacket.setPosition(position);
|
||||||
|
|
Loading…
Reference in a new issue