From ac06e7723fe27b086cd0049a81d7cbc2bb25460a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 18 Feb 2024 12:30:23 -0500 Subject: [PATCH] Fleshing out constructor --- src/engine/objects/ItemTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index c0856334..84f84568 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -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); }