mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-26 18:47:40 +01:00
Fix reporting of label markup and description in update events
This commit is contained in:
parent
e986ab4bfb
commit
1d85fdd75c
@ -78,6 +78,8 @@ public class MarkerAPIImpl implements MarkerAPI, Event.Listener<DynmapWorld> {
|
||||
public String label;
|
||||
public String icon;
|
||||
public String set;
|
||||
public boolean markup;
|
||||
public String desc;
|
||||
|
||||
public MarkerUpdated(Marker m, boolean deleted) {
|
||||
this.id = m.getMarkerID();
|
||||
@ -87,6 +89,8 @@ public class MarkerAPIImpl implements MarkerAPI, Event.Listener<DynmapWorld> {
|
||||
this.z = m.getZ();
|
||||
this.set = m.getMarkerSet().getMarkerSetID();
|
||||
this.icon = m.getMarkerIcon().getMarkerIconID();
|
||||
this.markup = m.isLabelMarkup();
|
||||
this.desc = m.getDescription();
|
||||
if(deleted)
|
||||
msg = "markerdeleted";
|
||||
else
|
||||
|
@ -75,7 +75,7 @@ public class MarkerSignManager {
|
||||
Marker marker = ms.findMarker(id);
|
||||
/* If exists, update it */
|
||||
if(marker != null) {
|
||||
marker.setLabel(label);
|
||||
marker.setLabel(label, true);
|
||||
marker.setMarkerIcon(mi);
|
||||
}
|
||||
else { /* Make new marker */
|
||||
|
Loading…
Reference in New Issue
Block a user