From 576f4af433609cc03d152848818227e6ea2b543c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Apr 2024 13:18:41 -0400 Subject: [PATCH] Update to sparsetype 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 e4f54e5b..ca49d591 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -547,8 +547,8 @@ public class ItemTemplate { for (Object key : rune_sparse_json.keySet()) { String sparseType = key.toString(); - String sparseValue = rune_sparse_json.getString(sparseType); - rune_sparse_data.put(sparseType, sparseValue); + Object sparseValue = rune_sparse_json.get(sparseType); + rune_sparse_data.put(sparseType, sparseValue.toString()); } JSONArray skill_adj_json = (JSONArray) jsonObject.get("rune_skill_adj");