Creature event arrived needs to be triggered with a task.

This commit is contained in:
MobiusDevelopment
2021-11-01 23:05:24 +00:00
parent 0506c469a3
commit c9b22e04db
21 changed files with 21 additions and 21 deletions
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3184,7 +3184,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3184,7 +3184,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3184,7 +3184,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -4143,7 +4143,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -4145,7 +4145,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3198,7 +3198,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3198,7 +3198,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3197,7 +3197,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3185,7 +3185,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3200,7 +3200,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }
@@ -3207,7 +3207,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
getAI().notifyEvent(CtrlEvent.EVT_ARRIVED); ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
return true; return true;
} }