mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-20 15:51:11 +00:00
Fix allay reload
This commit is contained in:
@@ -38,9 +38,7 @@ public class AllayPlatform extends AbstractPlatform {
|
||||
@Override
|
||||
public boolean reload() {
|
||||
getTerraConfig().load(this);
|
||||
getRawConfigRegistry().clear();
|
||||
try {
|
||||
getRawConfigRegistry().loadAll(this);
|
||||
boolean succeed = loadConfigPacks();
|
||||
|
||||
GENERATOR_WRAPPERS.forEach(wrapper -> {
|
||||
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 true;
|
||||
return succeed;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user