Fixed CPU consumption issue after revision 6064.

This commit is contained in:
MobiusDevelopment
2019-10-19 11:04:02 +00:00
parent cb8b39b7d4
commit 0ce9c48d39
21 changed files with 83 additions and 183 deletions

View File

@@ -1405,9 +1405,6 @@ public class Attackable extends Npc
// Clear all aggro char from list
clearAggroList();
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
// Clear Harvester reward
_harvestItem.set(null);
@@ -1436,8 +1433,8 @@ public class Attackable extends Npc
setWalking();
// check the region where this mob is, do not activate the AI if region is inactive.
if (!isInActiveRegion() && hasAI())
// Check the region where this mob is, do not activate the AI if region is inactive.
if (hasAI() && !isInActiveRegion())
{
getAI().stopAITask();
}