diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/protect/AdvancedProtectHandler.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/protect/AdvancedProtectHandler.java index f633c0b8..3db8ce57 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/protect/AdvancedProtectHandler.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/protect/AdvancedProtectHandler.java @@ -99,6 +99,6 @@ public Map getCommands() { @Override public boolean onJoinServer(String serverID, String username, Client client) { - return !enableHardwareFeature || client.trustLevel.hardwareInfo != null; + return !enableHardwareFeature || (client.trustLevel != null && client.trustLevel.hardwareInfo != null); } }