From d7834e467f28141c6b15008c60e00c7f5d340f8d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 28 Jul 2014 22:15:11 +1200 Subject: [PATCH] Since we can't do anything. Just ignore all async sound packets --- src/me/libraryaddict/disguise/utilities/PacketsManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index d3c24db6..653a0cf0 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -506,6 +506,9 @@ public class PacketsManager { StructureModifier mods = event.getPacket().getModifier(); Player observer = event.getPlayer(); if (event.getPacketType() == PacketType.Play.Server.NAMED_SOUND_EFFECT) { + if (event.isAsync()) { + return; + } String soundName = (String) mods.read(0); SoundType soundType = null; Location soundLoc = new Location(observer.getWorld(), ((Integer) mods.read(1)) / 8D,