Fix leaf rendering

This commit is contained in:
modmuss50 2017-06-20 22:13:47 +01:00
parent 0509066e74
commit 543f3fbdc9
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -33,6 +33,7 @@ import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.fml.relauncher.Side;
@ -125,4 +126,9 @@ public class BlockRubberLeaves extends BlockLeaves {
public Item getItemDropped(IBlockState state, Random rand, int fortune) {
return Item.getItemFromBlock(ModBlocks.RUBBER_SAPLING);
}
@Override
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
return true;
}
}