basic biome check for reeds

This commit is contained in:
octarine-noise
2014-07-06 20:09:08 +02:00
parent 244907f4cd
commit 7a02179481

View File

@@ -32,7 +32,7 @@ public class RenderBlockBetterReed extends RenderBlockAOBase implements IRenderB
if (y >= 254 || !(block instanceof BlockDirt)) return false;
if (blockAccess.getBlock(x, y + 1, z).getMaterial() != Material.water) return false;
if (!blockAccess.isAirBlock(x, y + 2, z)) return false;
if (blockAccess.getBiomeGenForCoords(x, z).temperature < 0.4f || blockAccess.getBiomeGenForCoords(x, z).rainfall < 0.4f) return false;
int terrainVariation = MathHelper.floor_double((noise.func_151605_a(x, z) + 1.0) * 32.0);
return terrainVariation < BetterFoliage.config.reedChance.value;
}