mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-24 17:47:40 +01:00
Avoid exception on world border check on unloaded world
This commit is contained in:
parent
1a470fe226
commit
c1902a2a9b
@ -240,8 +240,12 @@ public class BukkitWorld extends DynmapWorld {
|
||||
}
|
||||
return cnt;
|
||||
}
|
||||
private Polygon lastBorder;
|
||||
@Override
|
||||
public Polygon getWorldBorder() {
|
||||
return BukkitVersionHelper.helper.getWorldBorder(world);
|
||||
if (world != null) {
|
||||
lastBorder = BukkitVersionHelper.helper.getWorldBorder(world);
|
||||
}
|
||||
return lastBorder;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user