Reset initial monster position on delete.
This commit is contained in:
@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
// Set world region to null.
|
||||
setWorldRegion(null);
|
||||
|
||||
// Reset initial monster position.
|
||||
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||
{
|
||||
ThreadPool.schedule(() ->
|
||||
{
|
||||
setXYZ(0, 0, -10000);
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user