TCheckpoint

This commit is contained in:
tyuXX 2025-06-29 14:43:19 +03:00
parent c5b686aeb5
commit 9ae9bf64e7
54 changed files with 252 additions and 118 deletions

View file

@ -21,7 +21,8 @@ public class ActiveConfig {
GrimmsServer.logger.warning("Config value for " + key.getKey() + " is not of type " + ignoredType.getSimpleName() + ". Message: " + e.getMessage());
try {
return ignoredType.getDeclaredConstructor().newInstance();
} catch (InvocationTargetException | NoSuchMethodException | IllegalAccessException | InstantiationException ex) {
} catch (InvocationTargetException | NoSuchMethodException | IllegalAccessException |
InstantiationException ex) {
GrimmsServer.logger.warning("Failed to instantiate default value for " + key.getKey() + ". Message: " + ex.getMessage());
return null;
}