13
0
geforkt von Mirrors/Paper

Don't ignore result of PlayerEditBookEvent

Dieser Commit ist enthalten in:
Jason Penilla 2021-04-05 18:35:15 -07:00
Ursprung f2e70c48f9
Commit 273355e28c

Datei anzeigen

@ -599,7 +599,7 @@
List<Filterable<String>> list1 = pages.stream().map(this::filterableFromOutgoing).toList();
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)
}
}