3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 08:30:12 +01:00

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

Dieser Commit ist enthalten in:
RednedEpic 2020-05-24 14:55:48 -05:00
Ursprung 3a39e9afee
Commit 7154e1c816

Datei anzeigen

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