mirror of
https://github.com/Brettflan/WorldBorder.git
synced 2024-11-22 01:56:30 +01:00
attempt fix for circular border displaying in DynMap in isometric view with height of 64 instead of actual height of the world (normally would be 256)
This commit is contained in:
parent
9af79183d5
commit
0d45093fa6
@ -178,17 +178,20 @@ public class DynMapFeatures
|
||||
if (squareBorders.containsKey(worldName))
|
||||
removeBorder(worldName);
|
||||
|
||||
World world = Bukkit.getWorld(worldName);
|
||||
int y = (world != null) ? world.getMaxHeight() : 255;
|
||||
|
||||
CircleMarker marker = roundBorders.get(worldName);
|
||||
if (marker == null)
|
||||
{
|
||||
marker = markSet.createCircleMarker("worldborder_"+worldName, Config.DynmapMessage(), false, worldName, border.getX(), 64.0, border.getZ(), border.getRadiusX(), border.getRadiusZ(), true);
|
||||
marker = markSet.createCircleMarker("worldborder_"+worldName, Config.DynmapMessage(), false, worldName, border.getX(), y, border.getZ(), border.getRadiusX(), border.getRadiusZ(), true);
|
||||
marker.setLineStyle(lineWeight, lineOpacity, lineColor);
|
||||
marker.setFillStyle(0.0, 0x000000);
|
||||
roundBorders.put(worldName, marker);
|
||||
}
|
||||
else
|
||||
{
|
||||
marker.setCenter(worldName, border.getX(), 64.0, border.getZ());
|
||||
marker.setCenter(worldName, border.getX(), y, border.getZ());
|
||||
marker.setRadius(border.getRadiusX(), border.getRadiusZ());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user