mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-04 14:31:19 +01:00
Remove path properly
This commit is contained in:
parent
95dcaf34f5
commit
ba00c91a30
@ -185,14 +185,14 @@ public class LinearWaypointProvider implements EnumerableWaypointProvider {
|
||||
private LinearWaypointEditor(Player player) {
|
||||
this.player = player;
|
||||
this.markers = new EntityMarkers<Waypoint>();
|
||||
if (showingMarkers) {
|
||||
createWaypointMarkers();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void begin() {
|
||||
Messaging.sendTr(player, Messages.LINEAR_WAYPOINT_EDITOR_BEGIN);
|
||||
if (showingMarkers) {
|
||||
createWaypointMarkers();
|
||||
}
|
||||
}
|
||||
|
||||
private void clearWaypoints() {
|
||||
@ -212,13 +212,11 @@ public class LinearWaypointProvider implements EnumerableWaypointProvider {
|
||||
public void end() {
|
||||
if (!editing)
|
||||
return;
|
||||
editing = false;
|
||||
if (conversation != null) {
|
||||
conversation.abandon();
|
||||
}
|
||||
Messaging.sendTr(player, Messages.LINEAR_WAYPOINT_EDITOR_END);
|
||||
editing = false;
|
||||
if (!showingMarkers)
|
||||
return;
|
||||
markers.destroyMarkers();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user