Makes the duplicate dynmap marker creation warning into a debug message
This commit is contained in:
@@ -86,7 +86,15 @@ public final class DynmapManager {
|
|||||||
} else {
|
} else {
|
||||||
location = portal.getBlockAt(exit);
|
location = portal.getBlockAt(exit);
|
||||||
}
|
}
|
||||||
Marker marker = markerSet.createMarker(getPortalMarkerId(portal), portal.getName(), world.getName(),
|
|
||||||
|
String markerId = getPortalMarkerId(portal);
|
||||||
|
if (markerSet.findMarker(markerId) != null) {
|
||||||
|
Stargate.debug("DynmapManager::addPortalMarker", "Skipped marker creation, as the portal " +
|
||||||
|
"marker " + markerId + " already exists");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Marker marker = markerSet.createMarker(markerId, portal.getName(), world.getName(),
|
||||||
location.getX(), location.getY(), location.getZ(), portalIcon, false);
|
location.getX(), location.getY(), location.getZ(), portalIcon, false);
|
||||||
if (marker == null) {
|
if (marker == null) {
|
||||||
Stargate.logWarning(String.format(
|
Stargate.logWarning(String.format(
|
||||||
@@ -96,7 +104,7 @@ public final class DynmapManager {
|
|||||||
Portal name: %s
|
Portal name: %s
|
||||||
Portal world: %s
|
Portal world: %s
|
||||||
Portal location: %s,%s,%s""",
|
Portal location: %s,%s,%s""",
|
||||||
getPortalMarkerId(portal), portal.getName(), world.getName(), location.getX(), location.getY(),
|
markerId, portal.getName(), world.getName(), location.getX(), location.getY(),
|
||||||
location.getZ()));
|
location.getZ()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user