Open Terrain Generator (OTG)

Open Terrain Generator (OTG)

10M Downloads

[Bug]: 1.18.2 v0.0.27 OTG does not start when biomecategory is null or anything that is not recognized as biomecategory.

NLBlackEagle opened this issue ยท 0 comments

commented

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

biomeCategory=null, this is fixed if BiomeCategory (in biome) is set to e.g. plains so a fallback is probably required. The same goes for when a biomeCategory does not match a registered biomeCategory.

Expected Behavior

OTG starting up

Which platforms have you reproduced this issue using?

Spigot/Paper

OTG Version

OpenTerrainGenerator-Paper-1.18.2-0.0.27

Platform Version

paper 1.18.2

Steps To Reproduce

Start up OpenTerrainGenerator-Paper-1.18.2-0.0.27

Log file

[0 01:44:22 ERROR]: Error occurred while enabling OpenTerrainGenerator v1.18.2-0.0.27 (Is it up to date?)
java.lang.IllegalStateException: You are missing parameters to build a proper biome
BiomeBuilder{
precipitation=NONE,
biomeCategory=null,
temperature=1.4,
temperatureModifier=NONE,
downfall=0.0,
specialEffects=net.minecraft.world.level.biome.BiomeFog@54a54c0b,
mobSpawnSettings=net.minecraft.world.level.biome.BiomeSettingsMobs@23f3f50f,
generationSettings=net.minecraft.world.level.biome.BiomeSettingsGeneration@44b07aa2,
}
        at net.minecraft.world.level.biome.Biome$BiomeBuilder.build(Biome.java:343) ~[?:?]
        at com.pg85.otg.paper.biome.PaperBiome.createOTGBiome(PaperBiome.java:238) ~[OpenTerrainGenerator-Paper-1.18.2-0.0.27.jar:?]
        at com.pg85.otg.paper.presets.PaperPresetLoader.registerBiomesForPreset(PaperPresetLoader.java:185) ~[OpenTerrainGenerator-Paper-1.18.2-0.0.27.jar:?]
        at com.pg85.otg.paper.presets.PaperPresetLoader.registerBiomes(PaperPresetLoader.java:103) ~[OpenTerrainGenerator-Paper-1.18.2-0.0.27.jar:?]
        at com.pg85.otg.paper.OTGPlugin.onEnable(OTGPlugin.java:119) ~[OpenTerrainGenerator-Paper-1.18.2-0.0.27.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:541) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:560) ~[paper-1.18.2.jar:git-Paper-388]
        at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:474) ~[paper-1.18.2.jar:git-Paper-388]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:289) ~[paper-1.18.2.jar:git-Paper-388]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1164) ~[paper-1.18.2.jar:git-Paper-388]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.18.2.jar:git-Paper-388]
        at java.lang.Thread.run(Thread.java:1589) ~[?:?]
[0 01:44:22 INFO]: [OpenTerrainGenerator] Disabling OpenTerrainGenerator v1.18.2-0.0.27

Anything else?

No response