SPIGOT-2757: Player#stopSound Stops All Sounds
This commit is contained in:
parent
33071ecfff
commit
cb2749768e
@ -320,8 +320,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
if (getHandle().playerConnection == null) return;
|
if (getHandle().playerConnection == null) return;
|
||||||
PacketDataSerializer packetdataserializer = new PacketDataSerializer(Unpooled.buffer());
|
PacketDataSerializer packetdataserializer = new PacketDataSerializer(Unpooled.buffer());
|
||||||
|
|
||||||
packetdataserializer.a(sound);
|
|
||||||
packetdataserializer.a("");
|
packetdataserializer.a("");
|
||||||
|
packetdataserializer.a(sound);
|
||||||
getHandle().playerConnection.sendPacket(new PacketPlayOutCustomPayload("MC|StopSound", packetdataserializer));
|
getHandle().playerConnection.sendPacket(new PacketPlayOutCustomPayload("MC|StopSound", packetdataserializer));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user