Made intent clearer

This commit is contained in:
fullwall 2012-09-02 10:48:29 +08:00
parent 6d0086d54e
commit 3bb91d0fd1
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ public class EventListen implements Listener {
npc.despawn(); npc.despawn();
} }
@EventHandler(priority = EventPriority.LOWEST) @EventHandler(priority = EventPriority.HIGHEST)
public void onEntitySpawn(CreatureSpawnEvent event) { public void onEntitySpawn(CreatureSpawnEvent event) {
if (event.isCancelled() && npcRegistry.isNPC(event.getEntity())) if (event.isCancelled() && npcRegistry.isNPC(event.getEntity()))
event.setCancelled(false); event.setCancelled(false);

View File

@ -54,7 +54,7 @@ public class CitizensNavigator implements Navigator {
@Override @Override
public NavigatorParameters getLocalParameters() { public NavigatorParameters getLocalParameters() {
if (localParams == defaultParams) if (!isNavigating())
throw new IllegalStateException("not navigating"); throw new IllegalStateException("not navigating");
return localParams; return localParams;
} }