Skip to content

Commit

Permalink
Fix guided waypoint provider
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Dec 11, 2023
1 parent 06b0e2d commit ccf4f6b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -89,10 +89,10 @@ public WaypointEditor createEditor(CommandSender sender, CommandContext args) {

@Override
public void begin() {
Messaging.sendTr(player, Messages.GUIDED_WAYPOINT_EDITOR_BEGIN);
if (showPath) {
createWaypointMarkers();
}
Messaging.sendTr(player, Messages.GUIDED_WAYPOINT_EDITOR_BEGIN);
}

private void createDestinationMarker(Waypoint element) {
Expand Down Expand Up @@ -365,7 +365,7 @@ public boolean shouldExecute(GoalSelector selector) {
return false;

target = destinations.get(Util.getFastRandom().nextInt(destinations.size()));
if (target.getLocation().getWorld().equals(npc.getEntity().getWorld())) {
if (!target.getLocation().getWorld().equals(npc.getEntity().getWorld())) {
target = null;
return false;
}
Expand Down

0 comments on commit ccf4f6b

Please sign in to comment.