From 475ccaff0cb68e88115b5452a36c1b04632cd706 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Apr 2024 09:32:20 -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 e4c2d2e3..d7d8a39a 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -547,8 +547,8 @@ public class ItemTemplate { JSONObject rune_sparse_json = (JSONObject) jsonObject.get("rune_sparse_data"); - for (Object key : rune_sparse_json.keySet()) { - String sparseType = (String) key; + for (String key : rune_sparse_json.keySet()) { + String sparseType = key; Object sparseValue = rune_sparse_json.get(sparseType); rune_sparse_data.put(sparseType, sparseValue.toString()); }