Potentially fixed #10

This commit is contained in:
Zangamj 2016-11-13 17:40:49 -05:00
parent cb183e7ca4
commit 22f22f4741

View file

@ -136,6 +136,7 @@ public abstract class BlockDimDoorBase extends BlockDoor implements IDimDoor, IT
public void breakBlock(World world, BlockPos pos, IBlockState state) { public void breakBlock(World world, BlockPos pos, IBlockState state) {
// This function runs on the server side after a block is replaced // This function runs on the server side after a block is replaced
// We MUST call super.breakBlock() since it involves removing tile entities // We MUST call super.breakBlock() since it involves removing tile entities
if(state.getValue(BlockDoor.HALF) == EnumDoorHalf.LOWER) world.setBlockToAir(pos.up());
super.breakBlock(world, pos, state); super.breakBlock(world, pos, state);
} }
} }