Fleshing out constructor
This commit is contained in:
1 parent
53b2f476e2
commit
40d0e765fe
1 file changed
+3
-2
@@ -29,8 +29,9 @@ public class ItemTemplate {
|
||||
|
||||
obj_name = (String) jsonObject.get("obj_name");
|
||||
JSONArray scaleData = (JSONArray) jsonObject.get("obj_scale");
|
||||
obj_scale = new Vector3fImmutable(Float.parseFloat((String) scaleData.get(0)), Float.parseFloat((String) scaleData.get(1)), Float.parseFloat((String) scaleData.get(2)));
|
||||
obj_render_object = (Integer) jsonObject.get("obj_name");
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user