This breaks mods that try to modify the original fields. Instead we should just overwrite the problematic methods in Biome to avoid allocations; there will be some performance hit from dereferencing the Optional<Integer> but it's unavoidable without more hacks to track the optional changing, which probably aren't worth it.
This breaks mods that try to modify the original fields. Instead we should just overwrite the problematic methods in
Biome
to avoid allocations; there will be some performance hit from dereferencing theOptional<Integer>
but it's unavoidable without more hacks to track the optional changing, which probably aren't worth it.