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();
}