Clear lists only when not empty.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user