Skip to content

Commit 8c9c180

Browse files
committed
fix: null worlds for spawn locations
1 parent 84a46ef commit 8c9c180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/codes/antti/bluemaptowny/BlueMapTowny.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ private void updateMarkers() {
304304
if (this.config.getBoolean("style.outpost-icon-enabled", false)) {
305305
int i = 0;
306306
for (Location outpost : town.getAllOutpostSpawns()) {
307-
if (outpost.getWorld().equals(world)) {
307+
if (world.equals(outpost.getWorld())) {
308308
i++;
309309
POIMarker iconMarker = new POIMarker.Builder()
310310
.label(townName + " Outpost " + i)
@@ -317,7 +317,7 @@ private void updateMarkers() {
317317
}
318318
}
319319
}
320-
if (spawn.isPresent() && spawn.get().getWorld().equals(world)) {
320+
if (spawn.isPresent() && world.equals(spawn.get().getWorld())) {
321321
if (this.config.getBoolean("style.ruined-icon-enabled") && town.isRuined()) {
322322
POIMarker iconMarker = new POIMarker.Builder()
323323
.label(townName)

0 commit comments

Comments
 (0)