Potentially fixed #10
This commit is contained in:
parent
cb183e7ca4
commit
22f22f4741
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue