mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-09 20:41:23 +01:00
Remove invalid item spawn blacklist warning during startup.
This commit is contained in:
parent
2f1d9ad82c
commit
8500542e93
@ -374,6 +374,10 @@ public class Settings implements ISettings
|
|||||||
private List<Integer> getItemSpawnBlacklist()
|
private List<Integer> getItemSpawnBlacklist()
|
||||||
{
|
{
|
||||||
final List<Integer> epItemSpwn = new ArrayList<Integer>();
|
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(","))
|
for (String itemName : config.getString("item-spawn-blacklist", "").split(","))
|
||||||
{
|
{
|
||||||
itemName = itemName.trim();
|
itemName = itemName.trim();
|
||||||
|
Loading…
Reference in New Issue
Block a user