From 3521f305106eba04c6648376a6f01d100676cfa6 Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Sun, 4 Apr 2021 19:18:26 +0200 Subject: [PATCH] Leaves not dropping saplings --- .../ley/modding/dartcraft/block/BlockForceLeaves.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/ley/modding/dartcraft/block/BlockForceLeaves.java b/src/main/java/ley/modding/dartcraft/block/BlockForceLeaves.java index e270b9e..839e7a9 100644 --- a/src/main/java/ley/modding/dartcraft/block/BlockForceLeaves.java +++ b/src/main/java/ley/modding/dartcraft/block/BlockForceLeaves.java @@ -6,9 +6,12 @@ import ley.modding.dartcraft.Dartcraft; import ley.modding.dartcraft.util.Util; import net.minecraft.block.BlockLeaves; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.item.Item; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; +import java.util.Random; + public class BlockForceLeaves extends BlockLeaves { private IIcon icon; @@ -22,7 +25,6 @@ public class BlockForceLeaves extends BlockLeaves { this.icon = register.registerIcon(Dartcraft.MODID + ":leaves"); } - @SideOnly(Side.CLIENT) @Override public boolean isOpaqueCube() { return false; @@ -65,4 +67,10 @@ public class BlockForceLeaves extends BlockLeaves { public int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_) { return 0xffffff; } + + @Override + public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { + return Item.getItemFromBlock(Blocks.forcesapling); + } + }