Support double plants and fix scatter chances

This commit is contained in:
Daniel Mills
2020-01-26 23:17:55 -05:00
parent b61a71b3b4
commit 30ffc8cd11
2 changed files with 21 additions and 4 deletions

View File

@@ -556,11 +556,16 @@ public class IrisGenerator extends ParallaxWorldGenerator
else
{
MB mbx = biome.getScatterChanceSingle(scatter(wx, h, wz));
MB mbx = biome.getScatterChanceSingle(scatter(wx, h, wz), scatter(wz, h, wx));
if(!mbx.material.equals(Material.AIR))
{
data.setBlock(x, h + 1, z, mbx.material, mbx.data);
if(mbx.material.equals(Material.DOUBLE_PLANT))
{
data.setBlock(x, h + 2, z, mbx.material, (byte) 10);
}
}
}