Skip to content

Commit

Permalink
Missing sapling drops from branches + language file update
Browse files Browse the repository at this point in the history
  • Loading branch information
DisasterMoo committed Jul 15, 2019
1 parent c38f589 commit 81dcfe0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -7,6 +7,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import javax.annotation.Nonnull;

import net.minecraft.block.Block;
Expand All @@ -15,6 +16,7 @@
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
Expand Down Expand Up @@ -53,6 +55,13 @@ public int getMetaFromState(IBlockState state)
return 0;
}

@Override
@Nonnull
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
return Item.getItemFromBlock(BlockFruitTreeSapling.get(tree));
}

@SuppressWarnings("deprecation")
@Override
@Nonnull
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets
Submodule assets updated 37 files
+35 −0 tfc/blockstates/fruit_trees/branch/cherry.json
+35 −0 tfc/blockstates/fruit_trees/branch/green_apple.json
+35 −0 tfc/blockstates/fruit_trees/branch/lemon.json
+35 −0 tfc/blockstates/fruit_trees/branch/olive.json
+35 −0 tfc/blockstates/fruit_trees/branch/orange.json
+35 −0 tfc/blockstates/fruit_trees/branch/peach.json
+35 −0 tfc/blockstates/fruit_trees/branch/plum.json
+35 −0 tfc/blockstates/fruit_trees/branch/red_apple.json
+13 −3 tfc/blockstates/fruit_trees/leaves/banana.json
+35 −0 tfc/blockstates/fruit_trees/leaves/cherry.json
+35 −0 tfc/blockstates/fruit_trees/leaves/green_apple.json
+35 −0 tfc/blockstates/fruit_trees/leaves/lemon.json
+35 −0 tfc/blockstates/fruit_trees/leaves/olive.json
+35 −0 tfc/blockstates/fruit_trees/leaves/orange.json
+35 −0 tfc/blockstates/fruit_trees/leaves/peach.json
+35 −0 tfc/blockstates/fruit_trees/leaves/plum.json
+35 −0 tfc/blockstates/fruit_trees/leaves/red_apple.json
+19 −0 tfc/blockstates/fruit_trees/sapling/cherry.json
+19 −0 tfc/blockstates/fruit_trees/sapling/green_apple.json
+19 −0 tfc/blockstates/fruit_trees/sapling/lemon.json
+19 −0 tfc/blockstates/fruit_trees/sapling/olive.json
+19 −0 tfc/blockstates/fruit_trees/sapling/orange.json
+19 −0 tfc/blockstates/fruit_trees/sapling/peach.json
+19 −0 tfc/blockstates/fruit_trees/sapling/plum.json
+0 −0 tfc/blockstates/fruit_trees/sapling/red_apple.json
+42 −0 tfc/blockstates/fruit_trees/trunk/cherry.json
+42 −0 tfc/blockstates/fruit_trees/trunk/green_apple.json
+42 −0 tfc/blockstates/fruit_trees/trunk/lemon.json
+42 −0 tfc/blockstates/fruit_trees/trunk/olive.json
+42 −0 tfc/blockstates/fruit_trees/trunk/orange.json
+42 −0 tfc/blockstates/fruit_trees/trunk/peach.json
+42 −0 tfc/blockstates/fruit_trees/trunk/plum.json
+42 −0 tfc/blockstates/fruit_trees/trunk/red_apple.json
+9 −0 tfc/lang/en_us.lang
+30 −6 tfc/models/block/fruit_trees/branch_vertical.json
+0 −24 tfc/models/block/fruit_trees/leaves/banana.json
+12 −0 tfc/models/block/fruit_trees/leaves_overlay.json

0 comments on commit 81dcfe0

Please sign in to comment.