SPIGOT-7484: Cancelling PlayerEditBookEvent does not update client's book contents
This commit is contained in:
parent
02d4907887
commit
5dfd33dc27
@ -1457,6 +1457,8 @@ public class CraftEventFactory {
|
||||
}
|
||||
CraftMetaBook meta = (CraftMetaBook) editBookEvent.getNewBookMeta();
|
||||
CraftItemStack.setItemMeta(itemInHand, meta);
|
||||
} else {
|
||||
player.getBukkitEntity().updateInventory(); // SPIGOT-7484
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user