From 07a5de2c57672bfbc3bfda6595776529cf1d7613 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Apr 2024 13:33:03 -0400 Subject: [PATCH] Helpee and groupee parsing --- src/engine/objects/ItemTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 09c26d9d..2f159242 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -530,14 +530,14 @@ public class ItemTemplate { JSONArray groupee_types_json = jsonObject.getJSONArray("rune_groupee_monster_types"); for (Object o : groupee_types_json) { - int groupeeId = ((Long) o).intValue(); + int groupeeId = Long.valueOf((int) o).intValue(); rune_groupee_monster_types.add(groupeeId); } JSONArray helper_types_json = jsonObject.getJSONArray("rune_helper_monster_types"); for (Object o : helper_types_json) { - int helperId = ((Long) o).intValue(); + int helperId = Long.valueOf((int) o).intValue(); rune_helper_monster_types.add(helperId); }