Stop movement when trying to talk to a moving NPC.

This commit is contained in:
MobiusDevelopment
2019-07-23 12:50:34 +00:00
parent a92ccc4448
commit cdd8e40052
13 changed files with 91 additions and 0 deletions

View File

@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
npc.onRandomAnimation(Rnd.get(8));
}
}
// Stop movement when trying to talk to a moving NPC.
if (npc.isMoving())
{
player.stopMove(null);
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
{