Skip to content

Commit

Permalink
prevent placing wrong item into spell book slots manually
Browse files Browse the repository at this point in the history
  • Loading branch information
reoseah committed Nov 2, 2024
1 parent 35c6c6b commit 65dabe1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public SlotProperties getConfiguration() {

@Override
public boolean canInsert(ItemStack stack) {
return this.config != null && !this.config.output;
return this.config != null && !this.config.output && (this.config.ingredient == null || this.config.ingredient.test(stack));
}

@Nullable
Expand Down

0 comments on commit 65dabe1

Please sign in to comment.