Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Fixed world.getHighestBlockYAt(x,z) returning 0 for existing but not loaded chunks. This fixes BUKKIT-327. Thanks for dredhorse for the pull request!
Dieser Commit ist enthalten in:
Ursprung
bea7b1373e
Commit
246d07482b
@ -74,6 +74,10 @@ public class CraftWorld implements World {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getHighestBlockYAt(int x, int z) {
|
public int getHighestBlockYAt(int x, int z) {
|
||||||
|
if (!isChunkLoaded(x >> 4, z >> 4)){
|
||||||
|
loadChunk(x >> 4, z >> 4);
|
||||||
|
}
|
||||||
|
|
||||||
return world.getHighestBlockYAt(x, z);
|
return world.getHighestBlockYAt(x, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren