Browse Source

Fleshing out constructor

combat-2
MagicBot 9 months ago
parent
commit
ac06e7723f
  1. 2
      src/engine/objects/ItemTemplate.java

2
src/engine/objects/ItemTemplate.java

@ -47,7 +47,7 @@ public class ItemTemplate { @@ -47,7 +47,7 @@ public class ItemTemplate {
JSONObject resist_json = (JSONObject) jsonObject.get("combat_attack_resist");
for (Object key : resist_json.keySet()) {
Float resist = (Float) resist_json.get(key);
float resist = ((Double) resist_json.get(key)).floatValue();
combat_attack_resist.put((String) key, resist);
}

Loading…
Cancel
Save