mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 14:19:13 +00:00
Fix CustomGuiClose Event
This commit is contained in:
1 parent
2b6f63a3e3
commit
20583d9b0d
1 file changed
-3
@@ -49,9 +49,6 @@ public final class CustomGuiClosePacket extends AbstractPacket {
|
||||
|
||||
@Override
|
||||
public void receiveData(ByteBuf in, EntityPlayer player) throws IOException {
|
||||
if (!(player.openContainer instanceof ContainerCustomGui))
|
||||
return;
|
||||
|
||||
NBTTagCompound comp = ByteBufUtils.readNBT(in);
|
||||
EventHooks.onCustomGuiClose((IPlayer) NpcAPI.Instance().getIEntity(player), (new ScriptGui()).fromNBT(comp));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user