Prevent instant available previously used spawn location.
This commit is contained in:
parent
c9f1bba4a2
commit
eaeab9e073
@ -68,8 +68,12 @@ public class Kerr extends AbstractNpcAI
|
||||
@Override
|
||||
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||
{
|
||||
KERR_SPAWN_LOCATIONS.remove(npc);
|
||||
ThreadPool.schedule(() -> spawnKerr(), RESPAWN_DELAY);
|
||||
ThreadPool.schedule(() ->
|
||||
{
|
||||
KERR_SPAWN_LOCATIONS.remove(npc);
|
||||
spawnKerr();
|
||||
}, RESPAWN_DELAY);
|
||||
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
|
@ -68,8 +68,12 @@ public class Kerr extends AbstractNpcAI
|
||||
@Override
|
||||
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||
{
|
||||
KERR_SPAWN_LOCATIONS.remove(npc);
|
||||
ThreadPool.schedule(() -> spawnKerr(), RESPAWN_DELAY);
|
||||
ThreadPool.schedule(() ->
|
||||
{
|
||||
KERR_SPAWN_LOCATIONS.remove(npc);
|
||||
spawnKerr();
|
||||
}, RESPAWN_DELAY);
|
||||
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user