Clear lists only when not empty.
This commit is contained in:
parent
439da1c31d
commit
6514604c4a
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
@ -119,8 +119,8 @@ public class MinionList
|
||||
minion.deleteMe();
|
||||
}
|
||||
}
|
||||
}
|
||||
_spawnedMinions.clear();
|
||||
}
|
||||
|
||||
if (!_respawnTasks.isEmpty())
|
||||
{
|
||||
@ -131,10 +131,10 @@ public class MinionList
|
||||
task.cancel(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
_respawnTasks.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.
|
||||
|
Loading…
Reference in New Issue
Block a user