Browse Source

Parsing cleanup

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

1
src/engine/objects/ItemTemplate.java

@ -134,6 +134,7 @@ public class ItemTemplate {
if (jsonObject.containsValue("item_bulk_factor")) if (jsonObject.containsValue("item_bulk_factor"))
item_bulk_factor = ((Double) jsonObject.get("item_bulk_factor")).floatValue(); item_bulk_factor = ((Double) jsonObject.get("item_bulk_factor")).floatValue();
if (jsonObject.containsValue("item_defense_rating"))
item_defense_rating = ((Double) jsonObject.get("item_defense_rating")).floatValue(); item_defense_rating = ((Double) jsonObject.get("item_defense_rating")).floatValue();
JSONArray itemflags = (JSONArray) jsonObject.get("item_flags"); JSONArray itemflags = (JSONArray) jsonObject.get("item_flags");

Loading…
Cancel
Save