From adc90821e62afebe46566ba390fd50d022d858d4 Mon Sep 17 00:00:00 2001 From: hppeng Date: Thu, 7 Jul 2022 23:18:14 -0700 Subject: [PATCH] Fix crafted accessories apparently .... .. stupid --- js/builder_graph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/builder_graph.js b/js/builder_graph.js index 9687de5..c553eb1 100644 --- a/js/builder_graph.js +++ b/js/builder_graph.js @@ -258,7 +258,7 @@ class ItemInputDisplayNode extends ComputeNode { this.input_field.classList.add("is-invalid"); return null; } - if (item.statMap.has('powders')) { + if (this.powder_field && item.statMap.has('powders')) { this.powder_field.placeholder = "powders"; } @@ -266,7 +266,7 @@ class ItemInputDisplayNode extends ComputeNode { return null; } - if (item.statMap.has('powders')) { + if (this.powder_field && item.statMap.has('powders')) { this.powder_field.placeholder = item.statMap.get('slots') + ' slots'; }