Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 20:40:07 +01:00
Force chunk loading in EntityHuman.getBed, Fixes SPIGOT-64
Dieser Commit ist enthalten in:
Ursprung
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() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren