3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 14:30:17 +01:00

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

Dieser Commit ist enthalten in:
Camotoy 2020-09-29 13:21:43 -04:00 committet von GitHub
Ursprung 9bb52afc8a
Commit aee9ccc7d2
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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);