forked from MagicBane/Server
More info on template bootstrap
This commit is contained in:
@@ -195,10 +195,7 @@ public class dbItemHandler extends dbHandlerBase {
|
|||||||
itemTemplate.template_id = templateID;
|
itemTemplate.template_id = templateID;
|
||||||
ItemTemplate.templates.put(templateID, itemTemplate);
|
ItemTemplate.templates.put(templateID, itemTemplate);
|
||||||
|
|
||||||
if (templateTCountMap.entrySet().contains(itemTemplate.item_type))
|
templateTCountMap.merge(itemTemplate.item_type, 1, Integer::sum);
|
||||||
templateTCountMap.put(itemTemplate.item_type, templateTCountMap.get(itemTemplate.item_type) + 1);
|
|
||||||
else
|
|
||||||
templateTCountMap.put(itemTemplate.item_type, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.info(templateTCountMap.toString());
|
Logger.info(templateTCountMap.toString());
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ public class ItemTemplate {
|
|||||||
|
|
||||||
// Banes are defined by their sparse data field
|
// Banes are defined by their sparse data field
|
||||||
|
|
||||||
if (obj_sparse_data.entrySet().contains("ACTIONRESPONSE"))
|
if (obj_sparse_data.get("ACTIONRESPONSE") != null)
|
||||||
if (obj_sparse_data.get("ACTIONRESPONSE").equals("4250517122"))
|
if (obj_sparse_data.get("ACTIONRESPONSE").equals("4250517122"))
|
||||||
item_bane_rank = ((Long) jsonObject.get("item_bane_rank")).intValue();
|
item_bane_rank = ((Long) jsonObject.get("item_bane_rank")).intValue();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user