mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-26 05:50:39 +00:00
b
This commit is contained in:
1 parent
6b64624233
commit
848e056bb8
1 file changed
+8
@@ -110,6 +110,11 @@ public final class ModdedForcedDatapack {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static Path write() throws IOException {
|
private static Path write() throws IOException {
|
||||||
|
try {
|
||||||
|
ModdedStartup.ensureDefaultPack();
|
||||||
|
} catch (Throwable e) {
|
||||||
|
LOGGER.warn("Iris could not ensure the default pack before building the forced datapack", e);
|
||||||
|
}
|
||||||
Path packDirectory = packDirectory();
|
Path packDirectory = packDirectory();
|
||||||
clean(packDirectory);
|
clean(packDirectory);
|
||||||
Files.createDirectories(packDirectory);
|
Files.createDirectories(packDirectory);
|
||||||
@@ -137,6 +142,9 @@ public final class ModdedForcedDatapack {
|
|||||||
writeWorldPresetTag(packDirectory, presetIds);
|
writeWorldPresetTag(packDirectory, presetIds);
|
||||||
}
|
}
|
||||||
LOGGER.info("Iris forced startup datapack regenerated: {} pack(s), {} world preset(s), {} custom biome(s) at {}", packCount, presetIds.size(), seenBiomes.size(), packDirectory);
|
LOGGER.info("Iris forced startup datapack regenerated: {} pack(s), {} world preset(s), {} custom biome(s) at {}", packCount, presetIds.size(), seenBiomes.size(), packDirectory);
|
||||||
|
if (packCount == 0) {
|
||||||
|
LOGGER.warn("Iris installed NO worldgen packs into the forced datapack - custom biomes and their colors will NOT generate. Install a pack (e.g. /iris download overworld) and restart the server before creating an Iris world.");
|
||||||
|
}
|
||||||
return packDirectory;
|
return packDirectory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user