mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-27 06:42:57 +02:00
Fix guided waypoint provider
This commit is contained in:
parent
06b0e2d800
commit
ccf4f6b085
@ -89,10 +89,10 @@ public class GuidedWaypointProvider implements EnumerableWaypointProvider {
|
||||
|
||||
@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) {
|
||||
@ -365,7 +365,7 @@ public class GuidedWaypointProvider implements EnumerableWaypointProvider {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user