Fixed disabled talismans being craftable

This commit is contained in:
Auxilor
2021-02-05 11:55:59 +00:00
parent 70d5872aa2
commit a206a1523e

View File

@@ -213,7 +213,7 @@ public abstract class Talisman implements Listener, Watcher {
return new ComplexRecipePart(test -> Objects.equals(talisman, TalismanChecks.getTalismanOnItem(test)), out);
});
if (this.isCraftable()) {
if (this.isCraftable() && this.isEnabled()) {
EcoShapedRecipe.Builder builder = EcoShapedRecipe.builder(this.getPlugin(), this.getKey().getKey())
.setOutput(out);