ソースを参照

dead players cannot drop items, thx gnat

janiii 15 年 前
コミット
a9318983b6

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestDropItem.java

@@ -60,7 +60,7 @@ public final class RequestDropItem extends L2GameClientPacket
 	protected void runImpl()
 	{
 		L2PcInstance activeChar = getClient().getActiveChar();
-		if (activeChar == null)
+		if (activeChar == null || activeChar.isDead())
 			return;
 		// Flood protect drop to avoid packet lag
 		if (!activeChar.getFloodProtectors().getDropItem().tryPerformAction("drop item"))