Skip to content

Commit

Permalink
Improve item-spawn-blacklist load logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mdcfe committed Dec 9, 2018
1 parent c06dda8 commit 89d592c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Essentials/src/com/earth2me/essentials/Settings.java
Expand Up @@ -551,7 +551,7 @@ public List<Material> itemSpawnBlacklist() {
private List<Material> _getItemSpawnBlacklist() {
final List<Material> epItemSpwn = new ArrayList<>();
if (ess.getItemDb() == null) {
logger.log(Level.FINE, "Aborting ItemSpawnBL read, itemDB not yet loaded.");
logger.log(Level.FINE, "Skipping item spawn blacklist read; item DB not yet loaded.");
return epItemSpwn;
}
for (String itemName : config.getString("item-spawn-blacklist", "").split(",")) {
Expand All @@ -563,7 +563,7 @@ private List<Material> _getItemSpawnBlacklist() {
final ItemStack iStack = ess.getItemDb().get(itemName);
epItemSpwn.add(iStack.getType());
} catch (Exception ex) {
logger.log(Level.SEVERE, tl("unknownItemInList", itemName, "item-spawn-blacklist"));
logger.log(Level.SEVERE, tl("unknownItemInList", itemName, "item-spawn-blacklist"), ex);
}
}
return epItemSpwn;
Expand Down

0 comments on commit 89d592c

Please sign in to comment.