-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot invoke "net.jitse.npclib.api.NPC.setLocation()" because "npc" is null #176
Comments
Check if the NPC is null? |
Yes he is null but I don't know why |
Is your instance of the NPCLib null? |
sorry for the delay in response. |
There is a official way to spawn NPCs? |
so this is the "official way" (without plugin or lib) to spawn NPC : |
Hello,
I'm trying to use your api on my 1.18.1 spigot server but I have an issue :
When i try to setLocation() before creating my npc I get the message below in the console.
I have checked my code, but cannot find what I did wrong...
Any idea on how to solve it ?
thanks a bunch :)
My code :
The text was updated successfully, but these errors were encountered: