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<>(); | ||||
| @@ -466,23 +466,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(); | ||||
| @@ -523,6 +506,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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment