فهرست منبع

Fix for client crash on shift-click

_DS_ 16 سال پیش
والد
کامیت
0939277a2f
1فایلهای تغییر یافته به همراه9 افزوده شده و 6 حذف شده
  1. 9 6
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/L2Npc.java

+ 9 - 6
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/L2Npc.java

@@ -933,13 +933,14 @@ public class L2Npc extends L2Character
 					);
 
 			if (getTemplate().getDropData() != null)
+			{
+				StringUtil.append(html1,
+						"<br><center><font color=\"LEVEL\">[Drop Info]</font></center>" +
+						"<br>Rates legend: <font color=\"ff0000\">50%+</font> <font color=\"00ff00\">30%+</font> <font color=\"0000ff\">less than 30%</font>" +
+						"<table border=0 width=\"100%\">"
+						);
 				for (L2DropCategory cat : getTemplate().getDropData())
 				{
-					StringUtil.append(html1,
-							"<br><center><font color=\"LEVEL\">[Drop Info]</font></center>" +
-							"<br>Rates legend: <font color=\"ff0000\">50%+</font> <font color=\"00ff00\">30%+</font> <font color=\"0000ff\">less than 30%</font>" +
-							"<table border=0 width=\"100%\">"
-							);
 					for (L2DropData drop : cat.getAllDrops())
 					{
 						final String name = ItemTable.getInstance().getTemplate(drop.getItemId()).getName();
@@ -963,7 +964,9 @@ public class L2Npc extends L2Character
 								);
 					}
 				}
-			html1.append("</table></body></html>");
+				html1.append("</table>");
+			}
+			html1.append("</body></html>");
 
 			html.setHtml(html1.toString());
 			player.sendPacket(html);