mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
Bugfix
This commit is contained in:
parent
b27954548e
commit
de821df98d
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user