SPIGOT-7484: Cancelling PlayerEditBookEvent does not update client's book contents

This commit is contained in:
Parker Hawke 2023-09-22 03:08:21 +10:00 committed by md_5
parent 02d4907887
commit 5dfd33dc27
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -1457,6 +1457,8 @@ public class CraftEventFactory {
}
CraftMetaBook meta = (CraftMetaBook) editBookEvent.getNewBookMeta();
CraftItemStack.setItemMeta(itemInHand, meta);
} else {
player.getBukkitEntity().updateInventory(); // SPIGOT-7484
}
}