Closed Cr4fTJuNkiE closed 4 years ago
The issue is here:
Instead this should be something like:
this.cavesGen = net.minecraftforge.event.terraingen.TerrainGen.getModdedMapGen(new MapGenCaves(), net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.CAVE);
My mod checks the original gen to avoid weird scenarios like processing the same chunk twice. The original gen needs to be nonnull for this to work, or else a NullPointerException
will be thrown. In general it's not good practice to set the original gen to null. IMO it should be left untouched, and only overridden with valid MapGenBase
children.
Thanks for looking into this @yungnickyoung. Even though OTG won't actually ever use the vanilla cavegen, I'll insert a new instance instead of null, in order to emulate normal behaviour. Will be fixed for v9_r8.
Great. Thanks for the quick response!
OTG Plugin or Mod
[Please specify if it's about Forge Mod or Spigot server Plugin placing "x" into []]
OTG Version
[Please specify the full OTG version that you are running by placing "x" into []] -[ x ] 1.12.2_V9_r7
Forge or Spigot Versions
[Forge 1.12.2-14.23.5.2846 ]
Server/Client Log
https://pastebin.com/vL7KAra0
What other plugins are you running?
Description
Crashes when starting a new world.
Can you provide a Minimal, Reproducible Example?
Start a new world with OTG_v9_r7 and Yungs Better Caves