diff --git a/src/main/java/org/bukkit/craftbukkit/v1_12_R1/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/v1_12_R1/event/CraftEventFactory.java index 7a790cbc72..c68c2bbac8 100644 --- a/src/main/java/org/bukkit/craftbukkit/v1_12_R1/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/v1_12_R1/event/CraftEventFactory.java @@ -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) {