Minecraft Version: 1.21.1
NeoForge Version: 21.1.217
Steps to Reproduce:
- clone this repo https://github.com/pietro-lopes/FlatChunkGeneratorBug
- Create a world with commands/cheats ON
- Close the world/game
- Launch game, enter previous world
- teleport yourself using
/execute in flatchunkgeneratorbug:broken run tp @s 0 256 0
- fill with air to peek the terrain for ores
/fill 1 252 1 9 -63 9 air
- You should not be able to see any ores
- teleport yourself to a working dimension where it clears the settings cache
/execute in flatchunkgeneratorbug:working run tp @s 0 256 0
- fill with air just like before, you should see a few ore veins
Description of issue:
When you have a custom dimension with chunk generator type minecraft:flat and you use Neoforge Biome Modifiers to add stuff, those modifications are not applied in certain conditions because how FlatLevelSource caches their Settings
Example:
- Create a new world, and visit that dimension, works fine for that session.
- Join a previous created world runs a
ChunkGeneration#validate which triggers the caching
- Using "Recreate world", also causes same issue
Some discussion here:
https://discord.com/channels/313125603924639766/852298000042164244/1455623815186087956
Minecraft Version: 1.21.1
NeoForge Version: 21.1.217
Steps to Reproduce:
/execute in flatchunkgeneratorbug:broken run tp @s 0 256 0/fill 1 252 1 9 -63 9 air/execute in flatchunkgeneratorbug:working run tp @s 0 256 0Description of issue:
When you have a custom dimension with chunk generator type
minecraft:flatand you use Neoforge Biome Modifiers to add stuff, those modifications are not applied in certain conditions because how FlatLevelSource caches their SettingsExample:
ChunkGeneration#validatewhich triggers the cachingSome discussion here:
https://discord.com/channels/313125603924639766/852298000042164244/1455623815186087956