mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 21:40:08 +00:00
Reverted changes to comply with build version requirements and avoiding pulling functionality out of a common existing function
This commit is contained in:
1 parent
9749eecd87
commit
761a014ea5
2 files changed
+5
-21
No files matched your search
@@ -49,21 +49,7 @@ public final class MinestomPlatform extends AbstractPlatform {
|
||||
@Override
|
||||
public boolean reload() {
|
||||
getTerraConfig().load(this);
|
||||
getRawConfigRegistry().clear();
|
||||
|
||||
try {
|
||||
getRawConfigRegistry().loadAll(this);
|
||||
} catch (IOException e) {
|
||||
LOGGER.error("Failed to load configurations due to I/O error", e);
|
||||
return false; // reload failed
|
||||
} catch (PackLoadFailuresException e) {
|
||||
LOGGER.error("Failed to load configurations due to pack load failures", e);
|
||||
return false; // reload failed
|
||||
} catch (Exception e) {
|
||||
// Catch any other exceptions that might be thrown
|
||||
LOGGER.error("Failed to load configurations due to unexpected error", e);
|
||||
return false;
|
||||
}
|
||||
boolean succeed = loadConfigPacks();
|
||||
|
||||
MinecraftServer.getInstanceManager().getInstances().forEach(world -> {
|
||||
if(world.generator() instanceof MinestomChunkGeneratorWrapper wrapper) {
|
||||
@@ -74,9 +60,10 @@ public final class MinestomPlatform extends AbstractPlatform {
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
return succeed;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public @NotNull WorldHandle getWorldHandle() {
|
||||
return worldHandle;
|
||||
|
||||
Reference in new issue
Block a user