mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Don't ignore result of PlayerEditBookEvent
This commit is contained in:
@@ -599,7 +599,7 @@
|
|||||||
List<Filterable<String>> list1 = pages.stream().map(this::filterableFromOutgoing).toList();
|
List<Filterable<String>> list1 = pages.stream().map(this::filterableFromOutgoing).toList();
|
||||||
|
|
||||||
itemstack.set(DataComponents.WRITABLE_BOOK_CONTENT, new WritableBookContent(list1));
|
itemstack.set(DataComponents.WRITABLE_BOOK_CONTENT, new WritableBookContent(list1));
|
||||||
+ CraftEventFactory.handleEditBookEvent(this.player, slotId, handItem, itemstack); // CraftBukkit
|
+ this.player.getInventory().setItem(slotId, CraftEventFactory.handleEditBookEvent(this.player, slotId, handItem, itemstack)); // CraftBukkit // Paper - Don't ignore result (see other callsite for handleEditBookEvent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user