1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00

Strip Minecraft identifier when playing non-mapped sounds to allow for bedrock-exclusive sounds to be played

This commit is contained in:
RednedEpic
2020-05-24 14:55:48 -05:00
parent 3a39e9afee
commit 7154e1c816

View File

@@ -57,7 +57,7 @@ public class JavaPlayerPlaySoundTranslator extends PacketTranslator<ServerPlaySo
// no mapping
session.getConnector().getLogger()
.debug("[PlaySound] Defaulting to sound server gave us for " + packet.toString());
playsound = packetSound;
playsound = packetSound.replace("minecraft:", "");
} else {
playsound = soundMapping.getPlaysound();
}