CompactNPCLib icon indicating copy to clipboard operation
CompactNPCLib copied to clipboard

AI crash

Open XakepSDK opened this issue 8 years ago • 1 comments

What steps will reproduce the problem?

  1. Spawn NPC
  2. 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

XakepSDK avatar Apr 03 '17 08:04 XakepSDK

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)

InventivetalentDev avatar Apr 03 '17 13:04 InventivetalentDev