Prevent various auto-boxing operations by using primitive getters.

This commit is contained in:
MobiusDevelopment
2020-06-27 23:45:29 +00:00
parent 5dc0351dbc
commit 7ee1d55060
343 changed files with 757 additions and 703 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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())

View File

@@ -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);