This commit is contained in:
fullwall 2012-03-25 16:19:08 +08:00
parent b27954548e
commit de821df98d

View File

@ -29,7 +29,7 @@ public class LookClose extends Trait implements Runnable, Toggleable {
public void run() { public void run() {
EntityLiving search = null; EntityLiving search = null;
CitizensNPC handle = (CitizensNPC) npc; CitizensNPC handle = (CitizensNPC) npc;
if ((search = handle.getHandle().world.findNearbyPlayer(handle.getHandle(), 5)) != null && lookClose) if (!npc.getAI().hasDestination() && (search = handle.getHandle().world.findNearbyPlayer(handle.getHandle(), 5)) != null && lookClose)
faceEntity(handle, search.getBukkitEntity()); faceEntity(handle, search.getBukkitEntity());
} }