MinionList onMinionDie should set leader to null when respawnTime is 0.
Thanks to kamikadzz.
This commit is contained in:
parent
c41597103b
commit
64635f208c
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
@ -141,7 +141,11 @@ public class MinionList
|
||||
*/
|
||||
public void onMinionDie(Monster minion, int respawnTime)
|
||||
{
|
||||
minion.setLeader(null); // prevent memory leaks
|
||||
// Prevent memory leaks.
|
||||
if (respawnTime == 0)
|
||||
{
|
||||
minion.setLeader(null);
|
||||
}
|
||||
_spawnedMinions.remove(minion);
|
||||
|
||||
final int time = respawnTime < 0 ? _master.isRaid() ? (int) Config.RAID_MINION_RESPAWN_TIMER : 0 : respawnTime;
|
||||
|
Loading…
Reference in New Issue
Block a user