Fix crystal clusters giving wrong pick block

This commit is contained in:
Ellpeck 2017-02-18 18:30:54 +01:00
parent 4bb8c96a65
commit dbbf876b4b

View file

@ -33,6 +33,7 @@ import net.minecraft.util.EnumFacing;
import net.minecraft.util.Mirror; import net.minecraft.util.Mirror;
import net.minecraft.util.Rotation; import net.minecraft.util.Rotation;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
@ -139,6 +140,11 @@ public class BlockCrystalCluster extends BlockBase implements IColorProvidingBlo
return ArrayUtils.indexOf(WorldGenLushCaves.CRYSTAL_CLUSTERS, this); return ArrayUtils.indexOf(WorldGenLushCaves.CRYSTAL_CLUSTERS, this);
} }
@Override
public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player){
return new ItemStack(this);
}
@Override @Override
public int quantityDropped(Random random){ public int quantityDropped(Random random){
return random.nextInt(5)+2; return random.nextInt(5)+2;