geforkt von Mirrors/Paper
Check that item in hand is not null after book event. Fixes BUKKIT-5443
Dieser Commit ist enthalten in:
Ursprung
a86bc7aeb3
Commit
8a6ed3a88b
@ -709,7 +709,7 @@ public class CraftEventFactory {
|
||||
ItemStack itemInHand = player.inventory.getItem(itemInHandIndex);
|
||||
|
||||
// If they've got the same item in their hand, it'll need to be updated.
|
||||
if (itemInHand.getItem() == Items.BOOK_AND_QUILL) {
|
||||
if (itemInHand != null && itemInHand.getItem() == Items.BOOK_AND_QUILL) {
|
||||
if (!editBookEvent.isCancelled()) {
|
||||
CraftItemStack.setItemMeta(itemInHand, editBookEvent.getNewBookMeta());
|
||||
if (editBookEvent.isSigning()) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren