MechPad deselect / Flyer patrol tweak

This commit is contained in:
Anuken
2019-04-20 14:14:34 -04:00
parent 8a1da3c0ed
commit 52cd4a77dd
5 changed files with 15 additions and 8 deletions

View File

@@ -77,8 +77,13 @@ public class ArcNetServer implements ServerProvider{
Core.app.post(() -> {
try{
Net.handleServerReceived(k.id, object);
}catch(ValidateException e){
Log.err("Validation failed: {0} ({1})", e.player.name, e.getMessage());
}catch(RuntimeException e){
if(e.getCause() instanceof ValidateException){
ValidateException v = (ValidateException)e.getCause();
Log.err("Validation failed: {0} ({1})", v.player.name, v.getMessage());
}else{
e.printStackTrace();
}
}catch(Exception e){
e.printStackTrace();
}