Fix Chests not opening correctly with semi-solid blocks on top.
This commit is contained in:
parent
1830d6de89
commit
2ca7cff075
2 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@
|
||||||
+ */
|
+ */
|
||||||
+ public boolean isSideSolid(IBlockState base_state, IBlockAccess world, BlockPos pos, EnumFacing side)
|
+ public boolean isSideSolid(IBlockState base_state, IBlockAccess world, BlockPos pos, EnumFacing side)
|
||||||
+ {
|
+ {
|
||||||
+ if (base_state.func_185896_q()) // Short circuit to vanilla function if its true
|
+ if (base_state.func_185896_q() && side == EnumFacing.UP) // Short circuit to vanilla function if its true
|
||||||
+ return true;
|
+ return true;
|
||||||
+
|
+
|
||||||
+ IBlockState state = this.func_176221_a(base_state, world, pos);
|
+ IBlockState state = this.func_176221_a(base_state, world, pos);
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
private boolean func_176456_n(World p_176456_1_, BlockPos p_176456_2_)
|
private boolean func_176456_n(World p_176456_1_, BlockPos p_176456_2_)
|
||||||
{
|
{
|
||||||
- return p_176456_1_.func_180495_p(p_176456_2_.func_177984_a()).func_185915_l();
|
- return p_176456_1_.func_180495_p(p_176456_2_.func_177984_a()).func_185915_l();
|
||||||
+ return p_176456_1_.func_180495_p(p_176456_2_.func_177984_a()).isSideSolid(p_176456_1_, p_176456_2_, EnumFacing.DOWN);
|
+ return p_176456_1_.func_180495_p(p_176456_2_.func_177984_a()).isSideSolid(p_176456_1_, p_176456_2_.func_177984_a(), EnumFacing.DOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean func_176453_o(World p_176453_1_, BlockPos p_176453_2_)
|
private boolean func_176453_o(World p_176453_1_, BlockPos p_176453_2_)
|
||||||
|
|
Loading…
Reference in a new issue