瀏覽代碼

dead players cannot drop items, thx gnat

janiii 15 年之前
父節點
當前提交
a9318983b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestDropItem.java

+ 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"))