Fix reporting of label markup and description in update events

This commit is contained in:
Mike Primm 2011-11-21 00:02:42 +08:00 committed by mikeprimm
parent e986ab4bfb
commit 1d85fdd75c
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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 */