From 15bc39d49f783092fbfc85532e9141c9cc9d6e1a Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 18 Jan 2022 11:07:30 +1300 Subject: [PATCH] Fix an error with custom sounds --- .../utilities/packets/packetlisteners/PacketListenerSounds.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerSounds.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerSounds.java index 53a5bb3d..547f83e8 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerSounds.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerSounds.java @@ -156,6 +156,8 @@ public class PacketListenerSounds extends PacketAdapter { newModifs.write(2, mods.read(2)); newModifs.write(3, mods.read(3)); newModifs.write(4, mods.read(4)); + + mods = newModifs; } else { newPacket = event.getPacket().shallowClone(); mods = newPacket.getModifier();