CompactNPCLib
CompactNPCLib copied to clipboard
AI crash
What steps will reproduce the problem?
- Spawn NPC
- Set AI (A*)
What were you expecting to happen? What happened instead?
AI enabled. Crash.
What version of the plugin are you using? Type /version <Plugin Name>
1.11.2, 2.5.0-SNAPSHOT
What Spigot version are you using? Type /version
1.11.2
What plugins are you using? Type /plugins
No plugins
Do you have an error log? Use pastebin.com. If you're not sure, upload your whole server log
https://pastebin.com/8wAhx5r2
Did your client crash? Upload errors in .minecraft/logs/latest.log as well
Server closed.
Additional information? (Are you using Bungeecord? Did it work in previous versions? etc.)
Crash code: https://pastebin.com/STWB25LA Crash at npc.registerAI
The Pathfinder classes aren't directly intended to be uses in registerAI. In your case you can just call NPCLivingAbstract#pathfindTo to use A* for your NPC.
(Sorry that there's no warning about this)