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:
MauveCloud 2017-03-12 12:53:08 -07:00
parent bff9d64b29
commit fd54912c67

View file

@ -116,7 +116,11 @@ public abstract class GT_Block_Stones_Abstract extends GT_Generic_Block implemen
@Override
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)