Prevent various auto-boxing operations by using primitive getters.
This commit is contained in:
@@ -51,7 +51,7 @@ public class CreatureFollowTaskManager
|
||||
|
||||
for (Entry<Creature, Integer> entry : NORMAL_FOLLOW_CREATURES.entrySet())
|
||||
{
|
||||
follow(entry.getKey(), entry.getValue());
|
||||
follow(entry.getKey(), entry.getValue().intValue());
|
||||
}
|
||||
|
||||
_workingNormal = false;
|
||||
@@ -67,7 +67,7 @@ public class CreatureFollowTaskManager
|
||||
|
||||
for (Entry<Creature, Integer> entry : ATTACK_FOLLOW_CREATURES.entrySet())
|
||||
{
|
||||
follow(entry.getKey(), entry.getValue());
|
||||
follow(entry.getKey(), entry.getValue().intValue());
|
||||
}
|
||||
|
||||
_workingAttack = false;
|
||||
|
@@ -87,7 +87,7 @@ public class DecayTaskManager
|
||||
{
|
||||
delay = 8500;
|
||||
}
|
||||
if ((current - entry.getValue()) > delay)
|
||||
if ((current - entry.getValue().longValue()) > delay)
|
||||
{
|
||||
actor.onDecay();
|
||||
_decayTasks.remove(actor);
|
||||
|
@@ -46,7 +46,7 @@ public class RandomAnimationTaskManager
|
||||
final long time = System.currentTimeMillis();
|
||||
for (Entry<NpcInstance, Long> entry : PENDING_ANIMATIONS.entrySet())
|
||||
{
|
||||
if (time > entry.getValue())
|
||||
if (time > entry.getValue().longValue())
|
||||
{
|
||||
final NpcInstance npc = entry.getKey();
|
||||
if (npc.isInActiveRegion() && !npc.isDead() && !npc.isInCombat() && !npc.isMoving() && !npc.isStunned() && !npc.isSleeping() && !npc.isParalyzed())
|
||||
|
@@ -45,7 +45,7 @@ public class RespawnTaskManager
|
||||
final long time = System.currentTimeMillis();
|
||||
for (Entry<NpcInstance, Long> entry : PENDING_RESPAWNS.entrySet())
|
||||
{
|
||||
if (time > entry.getValue())
|
||||
if (time > entry.getValue().longValue())
|
||||
{
|
||||
final NpcInstance npc = entry.getKey();
|
||||
PENDING_RESPAWNS.remove(npc);
|
||||
|
Reference in New Issue
Block a user