From 3a8f7c9724b96e3aa5a6cf98d9eb2abb9c49b2d1 Mon Sep 17 00:00:00 2001 From: TheCodedOne Date: Thu, 6 Sep 2018 01:53:50 +0100 Subject: [PATCH] yeet part 2 --- .../blocks/base/BlockTraverseLeaves.java | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/main/java/prospector/traverse/blocks/base/BlockTraverseLeaves.java b/src/main/java/prospector/traverse/blocks/base/BlockTraverseLeaves.java index 518da5b..c479487 100644 --- a/src/main/java/prospector/traverse/blocks/base/BlockTraverseLeaves.java +++ b/src/main/java/prospector/traverse/blocks/base/BlockTraverseLeaves.java @@ -42,7 +42,6 @@ public BlockTraverseLeaves(String name, Item sapling, int saplingDropChance) { ShootingStar.registerModel(new ModelCompound(TraverseConstants.MOD_ID, this, "leaves", CHECK_DECAY, DECAYABLE)); } - public int quantityDropped(Random random) { return random.nextInt(saplingDropChance) == 0 ? 1 : 0; } @@ -60,17 +59,15 @@ public List onSheared(ItemStack item, IBlockAccess world, BlockPos po } @Override -public boolean isOpaqueCube(IBlockState state) { - return Blocks.LEAVES.getDefaultState().isOpaqueCube(); -} - -@Override -@SideOnly(Side.CLIENT) -public BlockRenderLayer getBlockLayer() { - return Blocks.LEAVES.getBlockLayer(); -} - + public boolean isOpaqueCube(IBlockState state) { + return Blocks.LEAVES.getDefaultState().isOpaqueCube(); + } + @Override + @SideOnly(Side.CLIENT) + public BlockRenderLayer getBlockLayer() { + return Blocks.LEAVES.getBlockLayer(); + } @Override protected BlockStateContainer createBlockState() {