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");
 | 
			
		||||
	
 | 
			
		||||
	private Item[] _allTemplates;
 | 
			
		||||
	private final Map<Integer, EtcItem> _etcItems = new HashMap<>();
 | 
			
		||||
@@ -464,23 +464,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();
 | 
			
		||||
@@ -521,6 +504,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