fixed blocks dropping twice when broken with the drill

Closes #88
This commit is contained in:
Ellpeck 2016-04-30 20:14:01 +02:00
parent 9696897c7b
commit 5faa779725

View file

@ -213,6 +213,8 @@ public abstract class BlockContainerBase extends BlockContainer{
public void onBlockHarvested(World world, BlockPos pos, IBlockState state, EntityPlayer player){
if(!player.capabilities.isCreativeMode){
this.dropBlockAsItem(world, pos, state, 0);
//dirty workaround because of Forge calling Item.onBlockStartBreak() twice
world.setBlockToAir(pos);
}
}