summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityHuman.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityHuman.patch')
-rw-r--r--nms-patches/EntityHuman.patch16
1 files changed, 12 insertions, 4 deletions
diff --git a/nms-patches/EntityHuman.patch b/nms-patches/EntityHuman.patch
index 34cabe67..7156d7f0 100644
--- a/nms-patches/EntityHuman.patch
+++ b/nms-patches/EntityHuman.patch
@@ -1,5 +1,5 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/EntityHuman.java 2014-11-28 17:43:43.105707435 +0000
-+++ src/main/java/net/minecraft/server/EntityHuman.java 2014-11-28 17:38:17.000000000 +0000
+--- ../work/decompile-8eb82bde//net/minecraft/server/EntityHuman.java 2014-11-30 16:32:54.472808010 +0000
++++ src/main/java/net/minecraft/server/EntityHuman.java 2014-11-30 16:32:11.364808967 +0000
@@ -8,13 +8,25 @@
import java.util.List;
import java.util.UUID;
@@ -361,7 +361,15 @@
this.sleepTicks = flag ? 0 : 100;
if (flag2) {
-@@ -1128,9 +1285,11 @@
+@@ -1090,6 +1247,7 @@
+ }
+
+ public static BlockPosition getBed(World world, BlockPosition blockposition, boolean flag) {
++ ((ChunkProviderServer) world.chunkProvider).getChunkAt(blockposition.getX() >> 4, blockposition.getZ() >> 4);
+ if (world.getType(blockposition).getBlock() != Blocks.BED) {
+ if (!flag) {
+ return null;
+@@ -1128,9 +1286,11 @@
if (blockposition != null) {
this.c = blockposition;
this.d = flag;
@@ -373,7 +381,7 @@
}
}
-@@ -1477,6 +1636,7 @@
+@@ -1477,6 +1637,7 @@
}
public IChatBaseComponent getScoreboardDisplayName() {