Fix reload command, use generator IDs

This commit is contained in:
dfsek
2020-10-11 23:35:46 -07:00
parent 534b83e36b
commit ef16143565
5 changed files with 24 additions and 22 deletions

View File

@@ -54,15 +54,11 @@ public class Terra extends GaeaPlugin {
@Override
public @Nullable ChunkGenerator getDefaultWorldGenerator(@NotNull String worldName, @Nullable String id) {
if(!loadedWorlds.contains(worldName)) TerraWorld.loadWorld(new WorldConfig(worldName, this));
if(!loadedWorlds.contains(worldName)) TerraWorld.loadWorld(new WorldConfig(worldName, id, this));
loadedWorlds.add(worldName); // Ensure world config is only loaded once for world.
return new TerraChunkGenerator();
}
public static void invalidate() {
loadedWorlds.clear();
}
@Override
public boolean isDebug() {
return ConfigUtil.debug;