A class could be settingsdependent and reloadable

This commit is contained in:
games647 2016-07-06 12:20:22 +02:00
parent b67cac1d97
commit 24cc4a1d13

View File

@ -148,11 +148,13 @@ public class AuthMeServiceInitializer {
throw new IllegalStateException("Settings instance is null");
}
for (Object object : objects.values()) {
if (object instanceof Reloadable) {
((Reloadable) object).reload();
} else if (object instanceof SettingsDependent) {
if (object instanceof SettingsDependent) {
((SettingsDependent) object).loadSettings(settings);
}
if (object instanceof Reloadable) {
((Reloadable) object).reload();
}
}
}