Skip to content

Commit

Permalink
Remove path properly
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Nov 4, 2020
1 parent 95dcaf3 commit ba00c91
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ private final class LinearWaypointEditor extends WaypointEditor {
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() {
Expand All @@ -212,13 +212,11 @@ private void createWaypointMarkers() {
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();
}

Expand Down

0 comments on commit ba00c91

Please sign in to comment.