Fixed not correct handling of gate delete notifications.
This commit is contained in:
parent
6e8670c64c
commit
5580a791b2
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user