Basic data table cleanup.
This commit is contained in:
@@ -61,7 +61,7 @@ import org.l2jmobius.gameserver.util.GMAudit;
|
||||
public class ItemTable
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(ItemTable.class.getName());
|
||||
private static Logger LOGGER_ITEMS = Logger.getLogger("item");
|
||||
private static final Logger LOGGER_ITEMS = Logger.getLogger("item");
|
||||
|
||||
public static final Map<String, Integer> SLOTS = new HashMap<>();
|
||||
static
|
||||
@@ -460,23 +460,6 @@ public class ItemTable
|
||||
EnchantItemHPBonusData.getInstance().load();
|
||||
}
|
||||
|
||||
protected static class ResetOwner implements Runnable
|
||||
{
|
||||
ItemInstance _item;
|
||||
|
||||
public ResetOwner(ItemInstance item)
|
||||
{
|
||||
_item = item;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
_item.setOwnerId(0);
|
||||
_item.setItemLootShedule(null);
|
||||
}
|
||||
}
|
||||
|
||||
public Set<Integer> getAllArmorsId()
|
||||
{
|
||||
return _armors.keySet();
|
||||
@@ -497,6 +480,23 @@ public class ItemTable
|
||||
return _allTemplates.length;
|
||||
}
|
||||
|
||||
protected static class ResetOwner implements Runnable
|
||||
{
|
||||
ItemInstance _item;
|
||||
|
||||
public ResetOwner(ItemInstance item)
|
||||
{
|
||||
_item = item;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
_item.setOwnerId(0);
|
||||
_item.setItemLootShedule(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static ItemTable getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
|
@@ -229,6 +229,7 @@ public class SchemeBufferTable
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user