mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 23:01:07 +00:00
build headless biome cache at creation
This commit is contained in:
@@ -73,8 +73,14 @@ public class Headless implements IHeadless, LevelHeightAccessor {
|
|||||||
if (!biome.isCustom()) continue;
|
if (!biome.isCustom()) continue;
|
||||||
for (var custom : biome.getCustomDerivitives()) {
|
for (var custom : biome.getCustomDerivitives()) {
|
||||||
binding.registerBiome(dimKey, custom, false);
|
binding.registerBiome(dimKey, custom, false);
|
||||||
|
customBiomes.put(custom.getId(), binding.getBiomeHolder(dimKey, custom.getId()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (var biome : org.bukkit.block.Biome.values()) {
|
||||||
|
if (biome == org.bukkit.block.Biome.CUSTOM) continue;
|
||||||
|
var key = biome.getKey();
|
||||||
|
minecraftBiomes.put(key, binding.getBiomeHolder(key.getNamespace(), key.getKey()));
|
||||||
|
}
|
||||||
ServerConfigurator.dumpDataPack();
|
ServerConfigurator.dumpDataPack();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user