Fog rendering fixes

This commit is contained in:
paulevsGitch 2020-09-25 10:33:48 +03:00
parent 4cbf429bc5
commit de7c7e1cdb
2 changed files with 9 additions and 7 deletions

View file

@ -119,10 +119,13 @@ public class EndLakeFeature extends DefaultFeature {
if (world.getBlockState(POS).getMaterial().isReplaceable()) {
if (world.isAir(POS.up())) {
BlockState state = world.getBiome(POS).getGenerationSettings().getSurfaceConfig().getTopMaterial();
BlocksHelper.setWithoutUpdate(world, POS, state);
BlocksHelper.setWithoutUpdate(world, POS, random.nextBoolean() ? state : BlockRegistry.ENDSTONE_DUST.getDefaultState());
BlocksHelper.setWithoutUpdate(world, POS.down(), END_STONE);
}
else {
BlocksHelper.setWithoutUpdate(world, POS, BlockRegistry.ENDSTONE_DUST.getDefaultState());
BlocksHelper.setWithoutUpdate(world, POS.down(), END_STONE);
}
else
BlocksHelper.setWithoutUpdate(world, POS, END_STONE);
}
}
}