Skip to content

Commit

Permalink
Fix event-item not being present in book sign (#5877)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLimeGlass authored Sep 15, 2023
1 parent 869a5de commit bd134d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ public ItemStack get(PlayerEditBookEvent event) {
book.setItemMeta(event.getNewBookMeta());
return book;
}
}, EventValues.TIME_FUTURE);
}, EventValues.TIME_NOW);
EventValues.registerEventValue(PlayerEditBookEvent.class, String[].class, new Getter<String[], PlayerEditBookEvent>() {
@Override
public String[] get(PlayerEditBookEvent event) {
Expand All @@ -1392,7 +1392,7 @@ public String[] get(PlayerEditBookEvent event) {
public String[] get(PlayerEditBookEvent event) {
return event.getNewBookMeta().getPages().toArray(new String[0]);
}
}, EventValues.TIME_FUTURE);
}, EventValues.TIME_NOW);
//ItemDespawnEvent
EventValues.registerEventValue(ItemDespawnEvent.class, Item.class, new Getter<Item, ItemDespawnEvent>() {
@Override
Expand Down

0 comments on commit bd134d0

Please sign in to comment.