mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 01:47:42 +01:00
Force chunk loading in EntityHuman.getBed, Fixes SPIGOT-64
This commit is contained in:
parent
8b94fad772
commit
c81db390ac
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user