geforkt von Mirrors/Paper
Don't ignore result of PlayerEditBookEvent
Dieser Commit ist enthalten in:
Ursprung
f2e70c48f9
Commit
273355e28c
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren