diff --git a/src/minecraft/biomesoplenty/blocks/BlockBOPFlower.java b/src/minecraft/biomesoplenty/blocks/BlockBOPFlower.java index 88953edf9..80f017034 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockBOPFlower.java +++ b/src/minecraft/biomesoplenty/blocks/BlockBOPFlower.java @@ -8,6 +8,7 @@ import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; +import net.minecraft.entity.item.EntityItem; import net.minecraft.item.ItemStack; import net.minecraft.util.DamageSource; import net.minecraft.util.Icon; @@ -91,13 +92,18 @@ public class BlockBOPFlower extends BlockFlower break; case 10: - this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.015625F, 1.0F); + //this.setBlockBounds(0.3F, -1.0F, 0.3F, 0.7F, -0.4F, 0.7F); + this.setBlockBounds(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F); break; case 11: this.setBlockBounds(0.3F, 0.0F, 0.3F, 0.7F, 0.4F, 0.7F); break; + case 15: + this.setBlockBounds(0.3F, 0.0F, 0.3F, 0.7F, 0.6F, 0.7F); + break; + default: this.setBlockBounds(0.1F, 0.0F, 0.1F, 0.9F, 0.8F, 0.9F); break; @@ -179,6 +185,19 @@ public class BlockBOPFlower extends BlockFlower && this.canThisPlantGrowOnThisBlockID(world.getBlockId(x, y - 1, z), world.getBlockMetadata(x, y, z)); } + @Override + public boolean isBlockReplaceable(World world, int x, int y, int z) + { + //ItemStack itemstack = new ItemStack(Blocks.flowers.get(), 1, 10); + + if (world.getBlockMetadata(x, y, z) == 10) { + //if (!world.isRemote) + //world.spawnEntityInWorld(new EntityItem(world, x, y, z, itemstack)); + return true; + } + return false; + } + @Override public int damageDropped(int meta) { diff --git a/src/minecraft/biomesoplenty/blocks/renderers/FoliageRenderer.java b/src/minecraft/biomesoplenty/blocks/renderers/FoliageRenderer.java index ccb06a158..1ec8bd6b5 100644 --- a/src/minecraft/biomesoplenty/blocks/renderers/FoliageRenderer.java +++ b/src/minecraft/biomesoplenty/blocks/renderers/FoliageRenderer.java @@ -24,9 +24,10 @@ public class FoliageRenderer implements ISimpleBlockRenderingHandler @Override public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { + int meta = world.getBlockMetadata(x, y, z); + if (modelId == render) { - int meta = world.getBlockMetadata(x, y, z); if (meta == 0) return renderer.renderBlockLilyPad(block, x, y, z); else @@ -86,7 +87,10 @@ public class FoliageRenderer implements ISimpleBlockRenderingHandler d2 += ((double)((float)(i1 >> 24 & 15L) / 15.0F) - 0.5D) * 0.5D; } - renderer.drawCrossedSquares(par1Block, renderer.blockAccess.getBlockMetadata(par2, par3, par4), d0, d1, d2, 1.0F); + if (renderer.blockAccess.getBlockMetadata(par2, par3, par4) == 10) + renderer.drawCrossedSquares(par1Block, renderer.blockAccess.getBlockMetadata(par2, par3, par4), d0, d1 - 1, d2, 1.0F); + else + renderer.drawCrossedSquares(par1Block, renderer.blockAccess.getBlockMetadata(par2, par3, par4), d0, d1, d2, 1.0F); return true; } }