mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fix crystal clusters giving wrong pick block
This commit is contained in:
parent
4bb8c96a65
commit
dbbf876b4b
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,7 @@ import net.minecraft.util.EnumFacing;
|
|||
import net.minecraft.util.Mirror;
|
||||
import net.minecraft.util.Rotation;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.RayTraceResult;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
|
@ -139,6 +140,11 @@ public class BlockCrystalCluster extends BlockBase implements IColorProvidingBlo
|
|||
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
|
||||
public int quantityDropped(Random random){
|
||||
return random.nextInt(5)+2;
|
||||
|
|
Loading…
Reference in a new issue