Added missing final modifiers.

This commit is contained in:
MobiusDev
2015-12-26 12:03:36 +00:00
parent cc92e5d062
commit e0d681a17e
974 changed files with 5919 additions and 5917 deletions

View File

@@ -71,15 +71,15 @@ public class HandysBlockCheckerEvent extends Quest
if (HandysBlockCheckerManager.getInstance().addPlayerToArena(player, arena))
{
ArenaParticipantsHolder holder = HandysBlockCheckerManager.getInstance().getHolder(arena);
final ArenaParticipantsHolder holder = HandysBlockCheckerManager.getInstance().getHolder(arena);
final ExCubeGameTeamList tl = new ExCubeGameTeamList(holder.getRedPlayers(), holder.getBluePlayers(), arena);
player.sendPacket(tl);
int countBlue = holder.getBlueTeamSize();
int countRed = holder.getRedTeamSize();
int minMembers = Config.MIN_BLOCK_CHECKER_TEAM_MEMBERS;
final int countBlue = holder.getBlueTeamSize();
final int countRed = holder.getRedTeamSize();
final int minMembers = Config.MIN_BLOCK_CHECKER_TEAM_MEMBERS;
if ((countBlue >= minMembers) && (countRed >= minMembers))
{

View File

@@ -290,9 +290,9 @@ public class MC_Show extends AbstractNpcAI
private void scheduleTimer()
{
int gameTime = GameTimeController.getInstance().getGameTime();
int hours = (gameTime / 60) % 24;
int minutes = gameTime % 60;
final int gameTime = GameTimeController.getInstance().getGameTime();
final int hours = (gameTime / 60) % 24;
final int minutes = gameTime % 60;
int hourDiff, minDiff;
hourDiff = (20 - hours);
if (hourDiff < 0)
@@ -310,7 +310,7 @@ public class MC_Show extends AbstractNpcAI
diff = hourDiff + minDiff;
if (Config.DEBUG)
{
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
final SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
_log.info("Fantasy Isle: MC show script starting at " + format.format(System.currentTimeMillis() + diff) + " and is scheduled each next 4 hours.");
}
// TODO startRepeatingQuestTimer("Start", diff, 14400000, null, null);

View File

@@ -160,7 +160,7 @@ public class Parade extends AbstractNpcAI
private long timeLeftMilli(int hh, int mm, int ss)
{
int now = (GameTimeController.getInstance().getGameTicks() * 60) / 100;
final int now = (GameTimeController.getInstance().getGameTicks() * 60) / 100;
int dd = ((hh * 3600) + (mm * 60) + ss) - (now % 86400);
if (dd < 0)
{
@@ -194,16 +194,16 @@ public class Parade extends AbstractNpcAI
spawnTask.cancel(false);
break;
}
int npcId = ACTORS[npcIndex++];
final int npcId = ACTORS[npcIndex++];
if (npcId == 0)
{
continue;
}
for (int route = 0; route < 5; ++route)
{
int[] start = START[route][i];
int[] goal = GOAL[route][i];
L2Npc actor = addSpawn(npcId, start[0], start[1], start[2], start[3], false, 0);
final int[] start = START[route][i];
final int[] goal = GOAL[route][i];
final L2Npc actor = addSpawn(npcId, start[0], start[1], start[2], start[3], false, 0);
actor.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new Location(goal[0], goal[1], goal[2], goal[3]));
spawns.add(actor);
}