Added missing final modifiers.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user