Open GoogleCodeExporter opened 8 years ago
1.在 \src\l1j\server\server\clientpackets\ 目錄下的各檔案 將 L1PcInstance pc = clientthread.getActiveChar(); 或是 L1PcInstance player = clientthread.getActiveChar(); 都移到該類別的建構函數的 super(abyte0); 的後面 並加上判斷 clientthread.getActiveChar() 所傳回的值是否為 null 如果是 null 就提前 return 出去 2. \src\l1j\server\server\ClientThread.java 請在有 StreamUtil.close(_out, _in); 的地方 後面補上用 try catch 所包起來的 if (_csocket != null) { _csocket.close(); _csocket = null; } 以便讓該user用的_csocket 能盡快關掉 以及 public void close() throws IOException { if (_csocket != null) { _csocket.close(); _csocket = null; } } 3. \src\l1j\server\server\datatables\ 在 public void setDrop(L1NpcInstance npc, L1Inventory inventory) { 請加上 if (inventory == null) { return; }
Original issue reported on code.google.com by playercd8@hotmail.com on 18 Jun 2012 at 9:25
playercd8@hotmail.com
Original issue reported on code.google.com by
playercd8@hotmail.com
on 18 Jun 2012 at 9:25