mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 11:15:21 +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;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
private Polygon lastBorder;
|
||||||
@Override
|
@Override
|
||||||
public Polygon getWorldBorder() {
|
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