Browse Source

Helpee and groupee parsing

combat-2
MagicBot 7 months ago
parent
commit
07a5de2c57
  1. 4
      src/engine/objects/ItemTemplate.java

4
src/engine/objects/ItemTemplate.java

@ -530,14 +530,14 @@ public class ItemTemplate {
JSONArray groupee_types_json = jsonObject.getJSONArray("rune_groupee_monster_types"); JSONArray groupee_types_json = jsonObject.getJSONArray("rune_groupee_monster_types");
for (Object o : groupee_types_json) { for (Object o : groupee_types_json) {
int groupeeId = ((Long) o).intValue(); int groupeeId = Long.valueOf((int) o).intValue();
rune_groupee_monster_types.add(groupeeId); rune_groupee_monster_types.add(groupeeId);
} }
JSONArray helper_types_json = jsonObject.getJSONArray("rune_helper_monster_types"); JSONArray helper_types_json = jsonObject.getJSONArray("rune_helper_monster_types");
for (Object o : helper_types_json) { for (Object o : helper_types_json) {
int helperId = ((Long) o).intValue(); int helperId = Long.valueOf((int) o).intValue();
rune_helper_monster_types.add(helperId); rune_helper_monster_types.add(helperId);
} }

Loading…
Cancel
Save