mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +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
|
||||
*
|
||||
* @return int 0-255
|
||||
* @return int 0-255, or -1 if the column is empty
|
||||
* @throws WorldException if the terrain is not generated
|
||||
*/
|
||||
public function getHighestBlockAt(int $x, int $z) : int{
|
||||
|
Loading…
x
Reference in New Issue
Block a user