From 5faa77972507c6c89ef96e5e52d0b34560c08f50 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 30 Apr 2016 20:14:01 +0200 Subject: [PATCH] fixed blocks dropping twice when broken with the drill Closes #88 --- .../actuallyadditions/mod/blocks/base/BlockContainerBase.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/base/BlockContainerBase.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/base/BlockContainerBase.java index f7deb7a32..eddb0f905 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/base/BlockContainerBase.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/base/BlockContainerBase.java @@ -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); } }