From 54b7fc2212a8bd0658d393776bad9e114be9a15e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 7 Mar 2024 20:40:32 -0500 Subject: [PATCH] Parse offering info. --- src/engine/objects/ItemTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 03468c49..baaf3c81 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -182,7 +182,7 @@ public class ItemTemplate { for (Object entry : offering_data) { JSONObject offering_entry = (JSONObject) entry; String offering_type = ((String) offering_entry.get("offering_type")).replaceAll("-", ""); - int offering_value = ((Double) offering_entry.get("offering_value")).intValue(); + int offering_value = ((Long) offering_entry.get("offering_value")).intValue(); item_offering_info.put(offering_type, offering_value); }