mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
SPIGOT-429: Use correct block for checking Block.b (canReplace)
This commit is contained in:
parent
faa27ed298
commit
8047b0a131
11
nms-patches/ItemBed.patch
Normal file
11
nms-patches/ItemBed.patch
Normal file
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user