mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-27 23:45:52 +00:00
Fix NPE making exception tracing hard
This commit is contained in:
1 parent
6056be3b64
commit
b524c69599
1 file changed
+1
-1
@@ -45,7 +45,7 @@ object MultipartCPH extends MultipartPH with IClientPacketHandler
|
||||
}
|
||||
}
|
||||
catch {
|
||||
case e:RuntimeException if e.getMessage.startsWith("DC: ") =>
|
||||
case e:RuntimeException if e.getMessage != null && e.getMessage.startsWith("DC: ") =>
|
||||
netHandler.handleDisconnect(new S40PacketDisconnect(new ChatComponentText(e.getMessage.substring(4))))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user