Pathfinder inactive after StuckAction teleport due to target distance #993

Open
liec0dez opened this Issue Dec 1, 2016 · 3 comments

Projects

None yet

2 participants

@liec0dez
Contributor
liec0dez commented Dec 1, 2016

Citizens: 2.0.21 Snapshot
Spigot: 1.10.2

When setting yourself as target of an NPC and go away far enough to trigger the teleport StuckAction, said NPC will lose interest once teleported. I'm assuming this is valid for any target since to me there is no reason for StuckActions behaving differently based on EntityType...

@fullwall
Member
fullwall commented Dec 2, 2016

Are you using the default StuckAction? Are you setting the path again after teleporting?

@liec0dez
Contributor
liec0dez commented Dec 2, 2016

@fullwall Yes, this has occured with the default StuckAction and I'm not setting the path again. Is one supposed to do that when NavigationStuckEvent is called? Would make more sense if that was built in...

@fullwall
Member
fullwall commented Dec 2, 2016 edited

Yes, you are meant to set the path again or return true in the StuckAction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment