Better formatting

Co-authored-by: chris <github@onechris.mozmail.com>
This commit is contained in:
Ethan 2024-07-05 18:54:04 +08:00 committed by GitHub
parent 360c20399e
commit e1cb3c42d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,11 +55,12 @@ public class OpenableSoundInteractionTranslator implements BlockSoundInteraction
if (identifier.contains("_door")) { if (identifier.contains("_door")) {
return open ? SoundEvent.DOOR_OPEN : SoundEvent.DOOR_CLOSE; return open ? SoundEvent.DOOR_OPEN : SoundEvent.DOOR_CLOSE;
} }
else if (identifier.contains("_trapdoor")){
if (identifier.contains("_trapdoor")) {
return open ? SoundEvent.TRAPDOOR_OPEN : SoundEvent.TRAPDOOR_CLOSE; return open ? SoundEvent.TRAPDOOR_OPEN : SoundEvent.TRAPDOOR_CLOSE;
} }
else { // Fence Gate
return open ? SoundEvent.FENCE_GATE_OPEN : SoundEvent.FENCE_GATE_CLOSE; // Fence Gate
} return open ? SoundEvent.FENCE_GATE_OPEN : SoundEvent.FENCE_GATE_CLOSE;
} }
} }