Skip to content

Commit

Permalink
Fix outposts being rendered on same world as town homeblocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Sep 21, 2023
1 parent 56bb40f commit bc11847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.dynmap</groupId>
<artifactId>Dynmap-Towny</artifactId>
<version>0.95</version>
<version>0.96</version>

<build>
<resources>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/dynmap/towny/DynmapTownyPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -850,11 +850,11 @@ else if(!ourblks.getFlag(cur_x-1, cur_z-1)) { /* Straight? */
String outpostMarkerID = outpostName;
Marker outpostMarker = resmark.remove(outpostMarkerID);
if (outpostMarker == null) {
outpostMarker = set.createMarker(outpostMarkerID, outpostName, blk.getWorld().getName(), xx, 64, zz, outpostIco, true);
outpostMarker = set.createMarker(outpostMarkerID, outpostName, tblk.getWorld().getName(), xx, 64, zz, outpostIco, true);
if (outpostMarker == null)
continue;
} else {
outpostMarker.setLocation(blk.getWorld().getName(), xx, 64, zz);
outpostMarker.setLocation(tblk.getWorld().getName(), xx, 64, zz);
outpostMarker.setLabel(outpostName);
outpostMarker.setMarkerIcon(outpostIco);
}
Expand Down

0 comments on commit bc11847

Please sign in to comment.