World->getHighestBlockAt() may still return -1 if the queried column of blocks is all air

This commit is contained in:
Dylan K. Taylor 2020-12-05 18:14:38 +00:00
parent 531c191431
commit b6df5b974d

View File

@ -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{