mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 20:55:44 +01:00
NPE check in GuidedWaypointsProvider
This commit is contained in:
parent
b29f292537
commit
2254741d09
@ -260,7 +260,9 @@ public class GuidedWaypointProvider implements EnumerableWaypointProvider {
|
||||
npc.getNavigator().getLocalParameters().addSingleUseCallback(new NavigatorCallback() {
|
||||
@Override
|
||||
public void onCompletion(CancelReason cancelReason) {
|
||||
plan.update(npc);
|
||||
if (plan != null) {
|
||||
plan.update(npc);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user