From dbab8f66dabbe35127325c48c3dc8a0f83b2c880 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Apr 2024 12:42:52 -0400 Subject: [PATCH] Migration to org.json --- 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 e70be021..3df9b590 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -546,8 +546,8 @@ public class ItemTemplate { JSONObject rune_sparse_json = jsonObject.getJSONObject("rune_sparse_data"); for (String sparseType : rune_sparse_json.keySet()) { - String sparseValue = rune_sparse_json.getString(sparseType); - rune_sparse_data.put(sparseType, sparseValue); + Object sparseValue = rune_sparse_json.getString(sparseType); + rune_sparse_data.put(sparseType, sparseValue.toString()); } JSONArray skill_adj_json = (JSONArray) jsonObject.get("rune_skill_adj");