1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-01 12:20:59 +02:00

Remove invalid item spawn blacklist warning during startup.

This commit is contained in:
KHobbits
2012-01-29 23:36:27 +00:00
parent 67bf4a58fe
commit 8bb14feca9

View File

@@ -374,6 +374,10 @@ public class Settings implements ISettings
private List<Integer> getItemSpawnBlacklist()
{
final List<Integer> epItemSpwn = new ArrayList<Integer>();
if (ess.getItemDb() == null) {
logger.log(Level.FINE, "Aborting ItemSpawnBL read, itemDB not yet loaded.");
return epItemSpwn;
}
for (String itemName : config.getString("item-spawn-blacklist", "").split(","))
{
itemName = itemName.trim();