Kaynağa Gözat

BETA: Do not restore items that already exist in OID map. Now you will have less OID spams in your console :)

Nik 13 yıl önce
ebeveyn
işleme
a1eff16da9

+ 4 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java

@@ -1585,6 +1585,10 @@ public abstract class Inventory extends ItemContainer
 			L2ItemInstance item;
 			while (inv.next())
 			{
+				// Check if that item already exists in OID map.
+				if (L2World.getInstance().findObject(inv.getInt("object_id")) != null)
+					continue;
+				
 				item = L2ItemInstance.restoreFromDb(getOwnerId(), inv);
 				
 				if (item == null)