diff options
author | md_5 <git@md-5.net> | 2015-01-16 17:56:09 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-01-16 17:56:09 +1100 |
commit | 8047b0a131114280c3eccbe37eda0dc8db8ed579 (patch) | |
tree | 18da299dacb6b35bc90f14e6de56c1e27d58fe66 | |
parent | faa27ed29807dad2ad7594f89b4795f1a6be4413 (diff) | |
download | craftbukkit-8047b0a131114280c3eccbe37eda0dc8db8ed579.tar craftbukkit-8047b0a131114280c3eccbe37eda0dc8db8ed579.tar.gz craftbukkit-8047b0a131114280c3eccbe37eda0dc8db8ed579.tar.lz craftbukkit-8047b0a131114280c3eccbe37eda0dc8db8ed579.tar.xz craftbukkit-8047b0a131114280c3eccbe37eda0dc8db8ed579.zip |
SPIGOT-429: Use correct block for checking Block.b (canReplace)
-rw-r--r-- | nms-patches/ItemBed.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/ItemBed.patch b/nms-patches/ItemBed.patch new file mode 100644 index 00000000..ec2a798c --- /dev/null +++ b/nms-patches/ItemBed.patch @@ -0,0 +1,11 @@ +--- ../work/decompile-8eb82bde/net/minecraft/server/ItemBed.java 2015-01-16 17:52:31.020317127 +1100 ++++ src/main/java/net/minecraft/server/ItemBed.java 2015-01-16 17:52:31.024317273 +1100 +@@ -23,7 +23,7 @@ + int i = MathHelper.floor((double) (entityhuman.yaw * 4.0F / 360.0F) + 0.5D) & 3; + EnumDirection enumdirection1 = EnumDirection.fromType2(i); + BlockPosition blockposition1 = blockposition.shift(enumdirection1); +- boolean flag1 = block.f(world, blockposition1); ++ boolean flag1 = world.getType(blockposition1).getBlock().f(world, blockposition1); // CraftBukkit + boolean flag2 = world.isEmpty(blockposition) || flag; + boolean flag3 = world.isEmpty(blockposition1) || flag1; + |