Fixed fence and iron bars block placement (#5372)

This commit is contained in:
Merlin Addams 2019-01-25 19:24:56 +00:00 committed by LexManos
parent d3c9db906f
commit d04df43b27
2 changed files with 2 additions and 2 deletions

View file

@ -45,6 +45,6 @@
+ private boolean canFenceConnectTo(IBlockReader world, BlockPos pos, EnumFacing facing) { + private boolean canFenceConnectTo(IBlockReader world, BlockPos pos, EnumFacing facing) {
+ BlockPos offset = pos.func_177972_a(facing); + BlockPos offset = pos.func_177972_a(facing);
+ IBlockState other = world.func_180495_p(offset); + IBlockState other = world.func_180495_p(offset);
+ return other.canBeConnectedTo(world, offset, facing.func_176734_d()) || func_176223_P().canBeConnectedTo(world, pos, facing.func_176734_d()); + return other.canBeConnectedTo(world, offset, facing.func_176734_d()) || func_176223_P().canBeConnectedTo(world, pos, facing);
+ } + }
} }

View file

@ -45,6 +45,6 @@
+ private boolean canPaneConnectTo(IBlockReader world, BlockPos pos, EnumFacing facing) { + private boolean canPaneConnectTo(IBlockReader world, BlockPos pos, EnumFacing facing) {
+ BlockPos offset = pos.func_177972_a(facing); + BlockPos offset = pos.func_177972_a(facing);
+ IBlockState other = world.func_180495_p(offset); + IBlockState other = world.func_180495_p(offset);
+ return other.canBeConnectedTo(world, offset, facing.func_176734_d()) || func_176223_P().canBeConnectedTo(world, pos, facing.func_176734_d()); + return other.canBeConnectedTo(world, offset, facing.func_176734_d()) || func_176223_P().canBeConnectedTo(world, pos, facing);
+ } + }
} }