Fix crafted accessories apparently

....
..
stupid
This commit is contained in:
hppeng 2022-07-07 23:18:14 -07:00
parent 86719b749a
commit adc90821e6

View file

@ -258,7 +258,7 @@ class ItemInputDisplayNode extends ComputeNode {
this.input_field.classList.add("is-invalid"); this.input_field.classList.add("is-invalid");
return null; return null;
} }
if (item.statMap.has('powders')) { if (this.powder_field && item.statMap.has('powders')) {
this.powder_field.placeholder = "powders"; this.powder_field.placeholder = "powders";
} }
@ -266,7 +266,7 @@ class ItemInputDisplayNode extends ComputeNode {
return null; return null;
} }
if (item.statMap.has('powders')) { if (this.powder_field && item.statMap.has('powders')) {
this.powder_field.placeholder = item.statMap.get('slots') + ' slots'; this.powder_field.placeholder = item.statMap.get('slots') + ' slots';
} }