mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-26 08:41:33 +01:00
Fix update notice for area markers - missing description
This commit is contained in:
parent
f6a93634fa
commit
e986ab4bfb
@ -272,6 +272,19 @@ class AreaMarkerImpl implements AreaMarker {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void setCornerLocations(double[] x, double[] z) {
|
public void setCornerLocations(double[] x, double[] z) {
|
||||||
|
/* Check if equals */
|
||||||
|
if(x.length == corners.size()) {
|
||||||
|
boolean match = true;
|
||||||
|
for(int i = 0; i < x.length; i++) {
|
||||||
|
Coord c = corners.get(i);
|
||||||
|
if((c.x != x[i]) || (c.z != z[i])) {
|
||||||
|
match = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(match)
|
||||||
|
return;
|
||||||
|
}
|
||||||
corners.clear();
|
corners.clear();
|
||||||
for(int i = 0; (i < x.length) && (i < z.length); i++) {
|
for(int i = 0; (i < x.length) && (i < z.length); i++) {
|
||||||
corners.add(new Coord(x[i], z[i]));
|
corners.add(new Coord(x[i], z[i]));
|
||||||
|
@ -107,6 +107,7 @@ public class MarkerAPIImpl implements MarkerAPI, Event.Listener<DynmapWorld> {
|
|||||||
public String id;
|
public String id;
|
||||||
public String label;
|
public String label;
|
||||||
public String set;
|
public String set;
|
||||||
|
public String desc;
|
||||||
|
|
||||||
public AreaMarkerUpdated(AreaMarker m, boolean deleted) {
|
public AreaMarkerUpdated(AreaMarker m, boolean deleted) {
|
||||||
this.id = m.getMarkerID();
|
this.id = m.getMarkerID();
|
||||||
@ -125,6 +126,7 @@ public class MarkerAPIImpl implements MarkerAPI, Event.Listener<DynmapWorld> {
|
|||||||
opacity = m.getLineOpacity();
|
opacity = m.getLineOpacity();
|
||||||
fillcolor = String.format("#%06X", m.getFillColor());
|
fillcolor = String.format("#%06X", m.getFillColor());
|
||||||
fillopacity = m.getFillOpacity();
|
fillopacity = m.getFillOpacity();
|
||||||
|
desc = m.getDescription();
|
||||||
|
|
||||||
this.set = m.getMarkerSet().getMarkerSetID();
|
this.set = m.getMarkerSet().getMarkerSetID();
|
||||||
if(deleted)
|
if(deleted)
|
||||||
|
Loading…
Reference in New Issue
Block a user