forked from MagicBane/Server
Template id back-filled when created.
This commit is contained in:
@@ -179,6 +179,7 @@ public class dbItemHandler extends dbHandlerBase {
|
||||
int templateID = rs.getInt("id");
|
||||
JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("template"));
|
||||
ItemTemplate itemTemplate = new ItemTemplate(jsonObject);
|
||||
itemTemplate.template_id = templateID;
|
||||
ItemTemplate.itemTemplates.put(templateID, itemTemplate);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@ public class ItemTemplate {
|
||||
// Global template lookup
|
||||
public static HashMap<Integer, ItemTemplate> itemTemplates = new HashMap<>();
|
||||
|
||||
public int template_id;
|
||||
|
||||
// Template Properties
|
||||
public String obj_name;
|
||||
public boolean obj_pickable;
|
||||
|
||||
Reference in New Issue
Block a user