SergiFerry / PlayerNPC

PlayerNPC API for Spigot 1.17+
https://www.spigotmc.org/resources/playernpc.93625/
26 stars 6 forks source link

[API] - NPC#lookAt uses feet location, not eye location #22

Open IllusionTheDev opened 1 year ago

IllusionTheDev commented 1 year ago

The title explains itself.

SergiFerry commented 1 year ago

It looks at the eye location.

[image: image.png]

El lun, 2 ene 2023 a las 4:29, ImIllusion @.***>) escribió:

The title explains itself.

— Reply to this email directly, view it on GitHub https://github.com/SergiFerry/PlayerNPC/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVGYYCXROTQ4C6Y4X5OWIHTWQJDSJANCNFSM6AAAAAATOPHENY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

IllusionTheDev commented 1 year ago

Not really, no.

My fix: npc.lookAt(targetLocation.add(0, -1.6, 0));