mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +01:00
Fixed NPE if using regionless config.
This commit is contained in:
parent
cf1d6c414d
commit
c0479bff05
@ -86,8 +86,9 @@ class JsonTimerTask extends TimerTask {
|
|||||||
//Handles Updates
|
//Handles Updates
|
||||||
for (World world : this.server.getWorlds()) {
|
for (World world : this.server.getWorlds()) {
|
||||||
//Parse region file for multi world style
|
//Parse region file for multi world style
|
||||||
if(regions.getBoolean("useworldpath", false))
|
if (regions != null)
|
||||||
parseRegionFile(world.getName() + "/" + regions.getString("filename", "regions.yml"), regions.getString("filename", "regions.yml").replace(".", "_" + world.getName() + ".yml"));
|
if (regions.getBoolean("useworldpath", false))
|
||||||
|
parseRegionFile(world.getName() + "/" + regions.getString("filename", "regions.yml"), regions.getString("filename", "regions.yml").replace(".", "_" + world.getName() + ".yml"));
|
||||||
|
|
||||||
current = System.currentTimeMillis();
|
current = System.currentTimeMillis();
|
||||||
|
|
||||||
@ -125,8 +126,9 @@ class JsonTimerTask extends TimerTask {
|
|||||||
lastTimestamp = System.currentTimeMillis();
|
lastTimestamp = System.currentTimeMillis();
|
||||||
|
|
||||||
//Parse regions file for non worlds style
|
//Parse regions file for non worlds style
|
||||||
if (!regions.getBoolean("useworldpath", false))
|
if (null != regions)
|
||||||
parseRegionFile(regions.getString("filename", "regions.yml"), regions.getString("filename", "regions.yml"));
|
if (!regions.getBoolean("useworldpath", false))
|
||||||
|
parseRegionFile(regions.getString("filename", "regions.yml"), regions.getString("filename", "regions.yml"));
|
||||||
}
|
}
|
||||||
|
|
||||||
//handles parsing and writing region json files
|
//handles parsing and writing region json files
|
||||||
|
Loading…
Reference in New Issue
Block a user