Skip to content

Commit

Permalink
Fix NPE when picking up stack from result slot
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfyScript committed Oct 31, 2023
1 parent 2bd3f9f commit c0854c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ButtonRecipeResult extends ItemInputButton<CCCache> {
if ((result.items().isEmpty() && !result.getTags().isEmpty()) || event instanceof InventoryClickEvent clickEvent && clickEvent.getClick().equals(ClickType.SHIFT_RIGHT) && event.getView().getTopInventory().equals(clickEvent.getClickedInventory())) {
return;
}
result.put(0, guiHandler.getWolfyUtils().getRegistries().getStackIdentifierParsers().parseFrom(itemStack));
result.put(0, itemStack == null ? null : guiHandler.getWolfyUtils().getRegistries().getStackIdentifierParsers().parseFrom(itemStack));
result.buildChoices();
}, null, (hashMap, cache, guiHandler, player, inventory, itemStack, slot, help) -> {
Result result = cache.getRecipeCreatorCache().getRecipeCache().getResult();
Expand Down

0 comments on commit c0854c8

Please sign in to comment.