Fix an error with custom sounds

This commit is contained in:
libraryaddict 2022-01-18 11:07:30 +13:00
parent 1a800f7ae3
commit 15bc39d49f

View File

@ -156,6 +156,8 @@ public class PacketListenerSounds extends PacketAdapter {
newModifs.write(2, mods.read(2)); newModifs.write(2, mods.read(2));
newModifs.write(3, mods.read(3)); newModifs.write(3, mods.read(3));
newModifs.write(4, mods.read(4)); newModifs.write(4, mods.read(4));
mods = newModifs;
} else { } else {
newPacket = event.getPacket().shallowClone(); newPacket = event.getPacket().shallowClone();
mods = newPacket.getModifier(); mods = newPacket.getModifier();