소스 검색

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