This commit is contained in:
tyuXX 2026-07-18 22:46:42 +03:00
parent 102711037e
commit a7358d968d
76 changed files with 855 additions and 523 deletions

View file

@ -18,12 +18,12 @@ public class ActiveConfig {
public static <T> T getConfigValue(ConfigKey key, Class<T> ignoredType) {
Object value = configValues.getOrDefault(key, key.getDefaultValue());
// Handle Integer to Long conversion for config values
if (ignoredType == Long.class && value instanceof Integer) {
value = ((Integer) value).longValue();
}
try {
return (T) value;
} catch (ClassCastException e) {