mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
parent
9696897c7b
commit
5faa779725
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue