Fixed not correct handling of gate delete notifications.

This commit is contained in:
Tobias Ottenweller 2014-02-03 12:53:46 +01:00
parent 6e8670c64c
commit 5580a791b2

View File

@ -116,7 +116,12 @@ public class Plugin extends JavaPlugin implements GateChangeListener
@Override @Override
public void gateChangedHandler(final Gate gate, final Map<String, Object> stringObjectMap) public void gateChangedHandler(final Gate gate, final Map<String, Object> stringObjectMap)
{ {
if (stringObjectMap.containsKey(GateChangeListener.removedGate)) {
this.markerUtil.removeMarker(gate);
}
else {
String oldID = (String)stringObjectMap.get(GateChangeListener.changedID); String oldID = (String)stringObjectMap.get(GateChangeListener.changedID);
this.markerUtil.updateMarker(gate, oldID); this.markerUtil.updateMarker(gate, oldID);
} }
}
} }