More info on template bootstrap

This commit is contained in:
2024-04-10 17:40:00 -04:00
parent 4d18e71aa1
commit df037a51f0
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -195,10 +195,7 @@ public class dbItemHandler extends dbHandlerBase {
itemTemplate.template_id = templateID;
ItemTemplate.templates.put(templateID, itemTemplate);
if (templateTCountMap.entrySet().contains(itemTemplate.item_type))
templateTCountMap.put(itemTemplate.item_type, templateTCountMap.get(itemTemplate.item_type) + 1);
else
templateTCountMap.put(itemTemplate.item_type, 1);
templateTCountMap.merge(itemTemplate.item_type, 1, Integer::sum);
}
Logger.info(templateTCountMap.toString());
+1 -1
View File
@@ -181,7 +181,7 @@ public class ItemTemplate {
// 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"))
item_bane_rank = ((Long) jsonObject.get("item_bane_rank")).intValue();