Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Because worlds can now have their height adjusted biomes are now able to change size. BiomeStorage.a used to be 256 as this was when biomes were 2D. However due to the biome format changing and height things this constant has changed. It represents the MAXIMUM amount of biome data that can be held... uh oh.

This caused biomes to use A LOT of memory because it was setting the biome data to as large as possible.
We now however use the chunk biome container constructor directly. Using a custom BiomeSource object (spigot calls it a WorldChunkManager) we simply make it always return the default value.
The world format should not need to be changed. As the length of biomes is stored in the world data.