Fix BlockPane's connection detection.

This commit is contained in:
Lex Manos 2014-11-30 08:36:24 -08:00
parent b4779be2f6
commit c539d5389a
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@
+
+ public boolean canPaneConnectTo(IBlockAccess world, BlockPos pos, EnumFacing dir)
+ {
+ BlockPos off = pos.func_177972_a(dir.func_176734_d());
+ BlockPos off = pos.func_177972_a(dir);
+ Block block = world.func_180495_p(off).func_177230_c();
+ return func_150098_a(block) || block.isSideSolid(world, pos, dir);
+ return func_150098_a(block) || block.isSideSolid(world, off, dir.func_176734_d());
+ }
}