From 524ebbbdd7391042dafbc64c5a165d98fa15574d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 18 Feb 2024 11:55:45 -0500 Subject: [PATCH] Fleshing out constructor --- src/engine/objects/ItemTemplate.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index e56621d4..51384d0f 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -29,8 +29,11 @@ public class ItemTemplate { obj_name = (String) jsonObject.get("obj_name"); JSONArray scaleData = (JSONArray) jsonObject.get("obj_scale"); - obj_scale = new Vector3fImmutable((Float) scaleData.get(0), (Float) scaleData.get(0), - (Float) scaleData.get(2)); + + Float tempValue = ((Float) scaleData.get(0)); + + // obj_scale = new Vector3fImmutable((Float) scaleData.get(0), (Float) scaleData.get(0), + // (Float) scaleData.get(2)); obj_render_object = ((Long) jsonObject.get("obj_render_object")).intValue(); }