forked from MagicBane/Server
Fleshing out constructor
This commit is contained in:
@@ -28,12 +28,11 @@ public class ItemTemplate {
|
|||||||
public ItemTemplate(JSONObject jsonObject) {
|
public ItemTemplate(JSONObject jsonObject) {
|
||||||
|
|
||||||
obj_name = (String) jsonObject.get("obj_name");
|
obj_name = (String) jsonObject.get("obj_name");
|
||||||
|
|
||||||
JSONArray scaleData = (JSONArray) jsonObject.get("obj_scale");
|
JSONArray scaleData = (JSONArray) jsonObject.get("obj_scale");
|
||||||
|
obj_scale = new Vector3fImmutable(((Double) scaleData.get(0)).floatValue(), ((Double) scaleData.get(1)).floatValue(),
|
||||||
|
((Double) scaleData.get(2)).floatValue());
|
||||||
|
|
||||||
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();
|
obj_render_object = ((Long) jsonObject.get("obj_render_object")).intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user