mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-28 20:17:50 +01:00
Made intent clearer
This commit is contained in:
parent
6d0086d54e
commit
3bb91d0fd1
@ -139,7 +139,7 @@ public class EventListen implements Listener {
|
||||
npc.despawn();
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onEntitySpawn(CreatureSpawnEvent event) {
|
||||
if (event.isCancelled() && npcRegistry.isNPC(event.getEntity()))
|
||||
event.setCancelled(false);
|
||||
|
@ -54,7 +54,7 @@ public class CitizensNavigator implements Navigator {
|
||||
|
||||
@Override
|
||||
public NavigatorParameters getLocalParameters() {
|
||||
if (localParams == defaultParams)
|
||||
if (!isNavigating())
|
||||
throw new IllegalStateException("not navigating");
|
||||
return localParams;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user