Skip to content

Commit

Permalink
Fix Saguaro Fruit dropping the block version of the Saguaro Fruit and…
Browse files Browse the repository at this point in the history
… not the item version of the Saguaro Fruit. #399
  • Loading branch information
alexbegt committed Aug 31, 2017
1 parent 0186811 commit 36f2d65
Showing 1 changed file with 9 additions and 0 deletions.
@@ -1,5 +1,7 @@
package com.progwml6.natura.overworld.block.saguaro;

import java.util.Random;

import com.progwml6.natura.library.NaturaRegistry;
import com.progwml6.natura.overworld.NaturaOverworld;

Expand All @@ -11,6 +13,7 @@
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.Mirror;
Expand Down Expand Up @@ -98,6 +101,12 @@ public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, Bloc
}
}

@Override
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
return NaturaOverworld.saguaroFruitItem;
}

@Override
public ItemStack getItem(World worldIn, BlockPos pos, IBlockState state)
{
Expand Down

0 comments on commit 36f2d65

Please sign in to comment.