Skip to content

Commit

Permalink
Update src/main/java/codes/cookies/mod/features/farming/garden/visito…
Browse files Browse the repository at this point in the history
…rs/VisitorDropProtection.java

Co-authored-by: Maik Z. <58326890+zFlxw@users.noreply.github.com>
  • Loading branch information
GrahamKracker and zFlxw authored Nov 26, 2024
1 parent 4336849 commit cfbc38e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private void updateSlots(Slot slot) {
protected final ItemStack disabledItem = new ItemBuilder(Items.BARRIER).hideAdditionalTooltips().set(CookiesDataComponentTypes.ITEM_CLICK_RUNNABLE, Runnables.doNothing()).setName(Text.of("Refusing temporarily disabled due to rare drop")).set(DataComponentTypes.RARITY, Rarity.COMMON).build();

private void handleRejectButton(ItemStack rejectButton, boolean visitorItemLore) {
if(rejectButton.isEmpty() || !rejectButton.isOf(Items.RED_TERRACOTTA) || !visitorItemLore) {
if(rejectButton == null || rejectButton.isEmpty() || !rejectButton.isOf(Items.RED_TERRACOTTA) || !visitorItemLore) {
return;
}

Expand Down

0 comments on commit cfbc38e

Please sign in to comment.