Fix allay reload

This commit is contained in:
Zoe Gidiere 2024-10-29 16:13:29 -06:00
parent ef1c9c125f
commit b4ab88a02e

View File

@ -38,9 +38,7 @@ public class AllayPlatform extends AbstractPlatform {
@Override @Override
public boolean reload() { public boolean reload() {
getTerraConfig().load(this); getTerraConfig().load(this);
getRawConfigRegistry().clear(); boolean succeed = loadConfigPacks();
try {
getRawConfigRegistry().loadAll(this);
GENERATOR_WRAPPERS.forEach(wrapper -> { GENERATOR_WRAPPERS.forEach(wrapper -> {
getConfigRegistry().get(wrapper.getConfigPack().getRegistryKey()).ifPresent(pack -> { getConfigRegistry().get(wrapper.getConfigPack().getRegistryKey()).ifPresent(pack -> {
@ -52,13 +50,8 @@ public class AllayPlatform extends AbstractPlatform {
); );
}); });
}); });
} catch(Exception e) {
TerraAllayPlugin.INSTANCE.getPluginLogger().error("Failed to reload Terra", e);
return false;
}
return succeed;
return true;
} }
@Override @Override