Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Fix Inventory Close
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Oct 7, 2024
1 parent 7895a83 commit fae693e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,9 @@ public static void handleInventoryCloseEvent(EntityPlayer human) {
human.world.getServer().getPluginManager().callEvent(event);
}
human.openContainer.transferTo(human.inventoryContainer, human.getBukkitEntity());
if (human instanceof EntityPlayerMP) {
((EntityPlayerMP) human).getBukkitEntity().updateInventory();
}
}

public static void handleEditBookEvent(EntityPlayerMP player, ItemStack newBookItem) {
Expand Down

0 comments on commit fae693e

Please sign in to comment.