Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Return if sound is null and update mappings
Dieser Commit ist enthalten in:
Ursprung
980e82a2d9
Commit
8e8bc2817a
@ -70,8 +70,9 @@ public class JavaPlayBuiltinSoundTranslator extends PacketTranslator<ServerPlayB
|
|||||||
session.getConnector().getLogger().debug("[Builtin] Sound for original " + packetSound + " to mappings " + soundPacket
|
session.getConnector().getLogger().debug("[Builtin] Sound for original " + packetSound + " to mappings " + soundPacket
|
||||||
+ " was not a playable level sound, or has yet to be mapped to an enum in "
|
+ " was not a playable level sound, or has yet to be mapped to an enum in "
|
||||||
+ "NukkitX SoundEvent ");
|
+ "NukkitX SoundEvent ");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
soundPacket.setSound(sound);
|
soundPacket.setSound(sound);
|
||||||
soundPacket.setPosition(Vector3f.from(packet.getX(), packet.getY(), packet.getZ()));
|
soundPacket.setPosition(Vector3f.from(packet.getX(), packet.getY(), packet.getZ()));
|
||||||
soundPacket.setIdentifier(soundMapping.getIdentifier());
|
soundPacket.setIdentifier(soundMapping.getIdentifier());
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit a1b44a958ab42fdc2416bfbacc0fbf155ed58d46
|
Subproject commit 204c8f8dfdb1e39b881986c4968aa2575fbb5400
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren