Fixed action filter issues

This commit is contained in:
Anuken
2020-01-21 10:03:47 -05:00
parent d74f6e4cb8
commit 9e95ebfa11
2 changed files with 9 additions and 2 deletions

View File

@@ -234,6 +234,13 @@ public class NetServer implements ApplicationListener{
RemoteReadServer.readPacket(packet.writeBuffer, packet.type, con.player);
}catch(ValidateException e){
Log.debug("Validation failed for '{0}': {1}", e.player, e.getMessage());
}catch(RuntimeException e){
if(e.getCause() instanceof ValidateException){
ValidateException v = (ValidateException)e.getCause();
Log.debug("Validation failed for '{0}': {1}", v.player, v.getMessage());
}else{
throw e;
}
}
});