Fix CustomGuiClose Event

This commit is contained in:
Kam committed 2025-06-02 15:01:31 -04:00
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));
}