Big trees no longer generate on water, vines no longer generate on tree trunks
This commit is contained in:
parent
3bf71a70e2
commit
2bb960ed24
2 changed files with 4 additions and 3 deletions
|
@ -195,7 +195,7 @@ public class GeneratorBasicTree extends GeneratorTreeBase
|
||||||
this.setBlockAndNotifyAdequately(world, pos.up(layer), this.log);
|
this.setBlockAndNotifyAdequately(world, pos.up(layer), this.log);
|
||||||
|
|
||||||
//If vines are enabled, randomly cover the sides of the trunk with vines from the bottom up
|
//If vines are enabled, randomly cover the sides of the trunk with vines from the bottom up
|
||||||
if (this.vine != null && layer > 0)
|
/*if (this.vine != null && layer > 0)
|
||||||
{
|
{
|
||||||
if (random.nextInt(3) > 0 && this.placeVinesOn.matches(world, pos.add(-1, layer, 0)))
|
if (random.nextInt(3) > 0 && this.placeVinesOn.matches(world, pos.add(-1, layer, 0)))
|
||||||
{
|
{
|
||||||
|
@ -214,7 +214,7 @@ public class GeneratorBasicTree extends GeneratorTreeBase
|
||||||
{
|
{
|
||||||
this.setBlockAndNotifyAdequately(world, pos.add(0, layer, 1), this.getVineStateForSide(EnumFacing.NORTH));
|
this.setBlockAndNotifyAdequately(world, pos.add(0, layer, 1), this.getVineStateForSide(EnumFacing.NORTH));
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ import net.minecraft.util.MathHelper;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import biomesoplenty.api.block.BlockQueries;
|
import biomesoplenty.api.block.BlockQueries;
|
||||||
import biomesoplenty.common.util.biome.GeneratorUtils;
|
import biomesoplenty.common.util.biome.GeneratorUtils;
|
||||||
|
import biomesoplenty.common.util.block.BlockQuery;
|
||||||
import biomesoplenty.common.util.block.BlockQuery.BlockQueryMaterial;
|
import biomesoplenty.common.util.block.BlockQuery.BlockQueryMaterial;
|
||||||
import biomesoplenty.common.util.block.BlockQuery.IBlockPosQuery;
|
import biomesoplenty.common.util.block.BlockQuery.IBlockPosQuery;
|
||||||
import biomesoplenty.common.util.config.BOPConfig.IConfigObj;
|
import biomesoplenty.common.util.config.BOPConfig.IConfigObj;
|
||||||
|
@ -46,7 +47,7 @@ public class GeneratorBigTree extends GeneratorTreeBase
|
||||||
{
|
{
|
||||||
// defaults
|
// defaults
|
||||||
this.amountPerChunk = 1.0F;
|
this.amountPerChunk = 1.0F;
|
||||||
this.placeOn = BlockQueries.anything;
|
this.placeOn = BlockQueries.fertile;
|
||||||
this.replace = new BlockQueryMaterial(Material.air, Material.leaves);
|
this.replace = new BlockQueryMaterial(Material.air, Material.leaves);
|
||||||
this.log = Blocks.log.getDefaultState();
|
this.log = Blocks.log.getDefaultState();
|
||||||
this.leaves = Blocks.leaves.getDefaultState();
|
this.leaves = Blocks.leaves.getDefaultState();
|
||||||
|
|
Loading…
Reference in a new issue