set_biome now works in fully 3D - fill entire column of biome to have old typical behaviour
This commit is contained in:
1 parent
8c6db7bc6f
commit
8558bb1523
1 file changed
+1
-2
@@ -26,9 +26,8 @@ public class BiomeArray_getBiomeArrayMixin implements BiomeArrayInterface
|
||||
@Override
|
||||
public void setBiomeAtIndex(BlockPos pos, World world, Biome what)
|
||||
{
|
||||
int seaLevel = 0;// seems to be a fixed value for now. world.getSeaLevel();
|
||||
int int_4 = (pos.getX() >> 2) & HORIZONTAL_BIT_MASK;
|
||||
int int_5 = MathHelper.clamp(seaLevel, 0, VERTICAL_BIT_MASK);
|
||||
int int_5 = MathHelper.clamp((pos.getY() >> 2), 0, VERTICAL_BIT_MASK);
|
||||
int int_6 = (pos.getZ() >> 2) & HORIZONTAL_BIT_MASK;
|
||||
data[(int_5 << (HORIZONTAL_SECTION_COUNT + HORIZONTAL_SECTION_COUNT)) | (int_6 << HORIZONTAL_SECTION_COUNT) | int_4] = what;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user