mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
World->getHighestBlockAt() may still return -1 if the queried column of blocks is all air
This commit is contained in:
parent
531c191431
commit
b6df5b974d
@ -2084,7 +2084,7 @@ class World implements ChunkManager{
|
|||||||
/**
|
/**
|
||||||
* Gets the highest block Y value at a specific $x and $z
|
* Gets the highest block Y value at a specific $x and $z
|
||||||
*
|
*
|
||||||
* @return int 0-255
|
* @return int 0-255, or -1 if the column is empty
|
||||||
* @throws WorldException if the terrain is not generated
|
* @throws WorldException if the terrain is not generated
|
||||||
*/
|
*/
|
||||||
public function getHighestBlockAt(int $x, int $z) : int{
|
public function getHighestBlockAt(int $x, int $z) : int{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user