From 587ac802de994c72314c9026dea3546f2b3f3ddf Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 4 Apr 2024 11:00:19 -0400 Subject: [PATCH] Fix to rune_group parsing --- src/engine/objects/ItemTemplate.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 9a25af00..12c5d847 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -473,8 +473,10 @@ public class ItemTemplate { rune_speed.put(movementType, speed); } - rune_group_type = ((Long) jsonObject.get("rune_group_type")).intValue(); - rune_group_is_faction = ((Boolean) jsonObject.get("rune_group_is_faction")); + JSONObject rune_group = (JSONObject) jsonObject.get("rune_group"); + + rune_group_type = ((Long) rune_group.get("group_type")).intValue(); + rune_group_is_faction = ((Boolean) rune_group.get("group_is_faction")); rune_group_is_guild = ((Boolean) jsonObject.get("rune_group_is_guild")); rune_dsc = (String) jsonObject.get("rune_dsc"); rune_fx_txt = (String) jsonObject.get("rune_fx_txt");