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); }