All pastes #195814 Raw Edit

Mine

public text v1 · immutable
·published 2006-10-10 02:16 UTC
rendered paste body
Index: C:/Documents and Settings/rolar/My Documents/Workspace/c5_trunk/L2_GameServer_c5/java/net/sf/l2j/gameserver/clientpackets/UseItem.java
===================================================================
--- C:/Documents and Settings/rolar/My Documents/Workspace/c5_trunk/L2_GameServer_c5/java/net/sf/l2j/gameserver/clientpackets/UseItem.java	(revision 43)
+++ C:/Documents and Settings/rolar/My Documents/Workspace/c5_trunk/L2_GameServer_c5/java/net/sf/l2j/gameserver/clientpackets/UseItem.java	(working copy)
@@ -62,7 +62,7 @@
 
 	void runImpl()
 	{
-
+		
 		L2PcInstance activeChar = getClient().getActiveChar();
         
 		if (activeChar == null) 
@@ -74,10 +74,12 @@
 			activeChar.sendPacket(new ActionFailed());
 			return;
 		}
-
+		
 		// NOTE: disabled due to deadlocks
 //        synchronized (activeChar.getInventory())
 //		{
+//		Instead of sync we use a little sleep, cause without this, there is a exploit with shortcuts
+			Thread.sleep(5);
 			L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId);
 
 			if (item == null)