mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-13 06:07:26 +01:00
Made intent clearer
This commit is contained in:
parent
46c9e6ac7b
commit
53a9620817
@ -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