mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-30 22:53:24 +01:00
Bugfix
This commit is contained in:
parent
fdd41ce1ae
commit
ca9c7056e1
@ -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