mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-17 18:12:43 +00:00
fix allay
This commit is contained in:
parent
2a40f4af1e
commit
d91e531fa5
@ -39,7 +39,8 @@ public class AllayPlatform extends AbstractPlatform {
|
||||
public boolean reload() {
|
||||
getTerraConfig().load(this);
|
||||
getRawConfigRegistry().clear();
|
||||
boolean succeed = getRawConfigRegistry().loadAll(this);
|
||||
try {
|
||||
getRawConfigRegistry().loadAll(this);
|
||||
|
||||
GENERATOR_WRAPPERS.forEach(wrapper -> {
|
||||
getConfigRegistry().get(wrapper.getConfigPack().getRegistryKey()).ifPresent(pack -> {
|
||||
@ -51,7 +52,13 @@ public class AllayPlatform extends AbstractPlatform {
|
||||
);
|
||||
});
|
||||
});
|
||||
return succeed;
|
||||
} catch(Exception e) {
|
||||
TerraAllayPlugin.INSTANCE.getPluginLogger().error("Failed to reload Terra", e);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user