Merge branch 'door-sound-fix' of https://github.com/letsgoawaydev/Geyser into door-sound-fix

This commit is contained in:
Ethan 2024-07-02 18:34:37 +08:00
commit 109e4a089a

View file

@ -36,6 +36,7 @@ import org.geysermc.geyser.util.SoundUtils;
public class FenceGateSoundInteractionTranslator implements BlockSoundInteractionTranslator {
@Override
public void translate(GeyserSession session, Vector3f position, String identifier) {
if (identifier.contains("iron")) return;
boolean open = identifier.contains("open=true");
String materialIdentifier = getMaterialIdentifier(identifier);
float volume = 1.0f;