mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-02 23:53:54 +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();
|
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);
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user