Allow placing item frames on Solid Block Faces (isSideSolid)

This commit is contained in:
AlgorithmX2 2015-06-01 22:31:55 -05:00
parent 3331d2a496
commit 885d7602f9

View file

@ -0,0 +1,12 @@
--- ../src-base/minecraft/net/minecraft/entity/EntityHanging.java
+++ ../src-work/minecraft/net/minecraft/entity/EntityHanging.java
@@ -124,6 +124,9 @@
{
BlockPos blockpos1 = blockpos.func_177967_a(enumfacing, k).func_177981_b(l);
Block block = this.field_70170_p.func_180495_p(blockpos1).func_177230_c();
+
+ if ( block.isSideSolid( this.field_70170_p, blockpos1, this.field_174860_b ))
+ continue;
if (!block.func_149688_o().func_76220_a() && !BlockRedstoneDiode.func_149909_d(block))
{