juliarn / npc-lib

Asynchronous, high-performance Minecraft NPC library for 1.8-1.21 servers.
MIT License
296 stars 50 forks source link

Npc flag Npc.LOOK_AT_PLAYER does not work #94

Closed phm07 closed 1 year ago

phm07 commented 1 year ago

When spawning a npc and setting .flag(Npc.LOOK_AT_PLAYER, true), the npc does not look at the player ingame. Also the npc only becomes visible after calling npc.trackPlayer(player) and npc.addIncludedPlayer(player) in PlayerJoinEvent. Maybe the event listener is broken?

My code: https://paste.pauhull.de/xereqifodo.kotlin

Paper version: This server is running Paper version git-Paper-404 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT) (Git: f9dc371)

ProtocolLib version: ProtocolLib v5.0.0-SNAPSHOT-b612

NPC-Lib dependency: implementation("com.github.juliarn", "NPC-Lib", "3.0.0-beta3")

derklaro commented 1 year ago

You need to call .actionController on the platform builder in order to enable the action controller.