Fixed disabled talismans still being craftable

This commit is contained in:
Auxilor
2021-07-25 01:15:40 +01:00
parent c52497e519
commit 065b3b632c

View File

@@ -176,7 +176,7 @@ public class TalismanLevel {
new CustomItem(this.getKey(), test -> Objects.equals(this, TalismanChecks.getTalismanOnItem(test)), out).register();
if (this.isCraftable()) {
if (this.isCraftable() && this.getTalisman().isEnabled()) {
ShapedCraftingRecipe.Builder builder = ShapedCraftingRecipe.builder(this.getPlugin(), this.getKey().getKey())
.setOutput(out);