Completed fix for #916
Note: I did test to make sure a silk touch pick would drop the plain forms instead of the cobblestone variants.
This commit is contained in:
parent
bff9d64b29
commit
fd54912c67
1 changed files with 5 additions and 1 deletions
|
@ -116,7 +116,11 @@ public abstract class GT_Block_Stones_Abstract extends GT_Generic_Block implemen
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
|
public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
|
||||||
return Lists.newArrayList(new ItemStack(this, 1, state.getValue(METADATA)));
|
int metadata = (int) state.getValue(METADATA);
|
||||||
|
if (metadata % 8 == 0) {
|
||||||
|
metadata++;
|
||||||
|
}
|
||||||
|
return Lists.newArrayList(new ItemStack(this, 1, metadata));
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
|
|
Loading…
Reference in a new issue