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

@@ -135,7 +135,7 @@ public class AdminEnchant implements IAdminCommandHandler
{
try
{
int ench = Integer.parseInt(command.substring(12));
final int ench = Integer.parseInt(command.substring(12));
// check value
if ((ench < 0) || (ench > 127))
@@ -196,7 +196,7 @@ public class AdminEnchant implements IAdminCommandHandler
L2ItemInstance itemInstance = null;
// only attempt to enchant if there is a weapon equipped
L2ItemInstance parmorInstance = player.getInventory().getPaperdollItem(armorType);
final L2ItemInstance parmorInstance = player.getInventory().getPaperdollItem(armorType);
if ((parmorInstance != null) && (parmorInstance.getLocationSlot() == armorType))
{
itemInstance = parmorInstance;
@@ -212,7 +212,7 @@ public class AdminEnchant implements IAdminCommandHandler
player.getInventory().equipItem(itemInstance);
// send packets
InventoryUpdate iu = new InventoryUpdate();
final InventoryUpdate iu = new InventoryUpdate();
iu.addModifiedItem(itemInstance);
player.sendPacket(iu);
player.broadcastPacket(new CharInfo(player));