Fixed the bounding boxes for high grass and rendering of the leaves.

This commit is contained in:
Amnet 2013-04-20 05:21:46 +02:00
parent 8aef7b553c
commit e9abae1e5c
6 changed files with 40 additions and 5 deletions

View file

@ -18,6 +18,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.IShearable;
@ -133,4 +134,15 @@ public class BlockBOPAppleLeaves extends BlockLeavesBase implements IShearable
ret.add(new ItemStack(this, 1, 0));
return ret;
}
@SideOnly(Side.CLIENT)
public void setGraphicsLevel(boolean par1)
{
this.graphicsLevel = par1;
}
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
return true;
}
}

View file

@ -144,4 +144,15 @@ public class BlockBOPColorizedLeaves extends BlockLeavesBase implements IShearab
{
return meta & 7;
}
@SideOnly(Side.CLIENT)
public void setGraphicsLevel(boolean par1)
{
this.graphicsLevel = par1;
}
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
return true;
}
}

View file

@ -32,7 +32,7 @@ public class BlockBOPFoliage extends BlockFlower implements IShearable
private static final int GRASSTOP = 6;
private static final int ALGAE = 0;
private static final int GRASSBOTTOM = 1;
private static final int GRASSBOTTOM = 3;
public BlockBOPFoliage(int blockID)
{

View file

@ -11,6 +11,7 @@ import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.IShearable;
import biomesoplenty.BiomesOPlenty;
@ -117,4 +118,15 @@ public class BlockBOPLeaves extends BlockLeavesBase implements IShearable
{
return meta & 7;
}
@SideOnly(Side.CLIENT)
public void setGraphicsLevel(boolean par1)
{
this.graphicsLevel = par1;
}
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
return true;
}
}

View file

@ -289,11 +289,11 @@ public class WorldGenDeadTree extends WorldGenerator
{
if (var18 == var20)
{
var17 = 4;
var17 = 6;
}
else if (var19 == var20)
{
var17 = 8;
var17 = 10;
}
}

View file

@ -289,11 +289,11 @@ public class WorldGenDeadTree3 extends WorldGenerator
{
if (var18 == var20)
{
var17 = 4;
var17 = 6;
}
else if (var19 == var20)
{
var17 = 8;
var17 = 10;
}
}