mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-10 01:00:25 +02:00
parent
9696897c7b
commit
5faa779725
|
@ -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