mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-29 19:11:32 +01:00
Fix error if no render triggers are defined.
This commit is contained in:
parent
05f3ced64f
commit
b804aa72f8
@ -110,8 +110,12 @@ public class DynmapPlugin extends JavaPlugin {
|
||||
hchand = new HeroChatHandler(configuration, this, getServer());
|
||||
|
||||
enabledTriggers.clear();
|
||||
for (Object trigger : configuration.getList("render-triggers")) {
|
||||
enabledTriggers.add((String) trigger);
|
||||
List<Object> triggers = configuration.getList("render-triggers");
|
||||
if (triggers != null)
|
||||
{
|
||||
for (Object trigger : triggers) {
|
||||
enabledTriggers.add((String) trigger);
|
||||
}
|
||||
}
|
||||
|
||||
registerEvents();
|
||||
|
Loading…
Reference in New Issue
Block a user