Code: PHP: $level = $player->getLevel();$rand = mt_rand(-100, 100);$x = $player->x+$rand;$z = $player->z+$rand;var_dump($level->generateChunk($x,$z));$level->generateChunk($x,$z,true);; But it always returns NULL
What are you expecting it to return? https://github.com/pmmp/PocketMine-...8c/src/pocketmine/level/Level.php#L3029-L3041
Well, i generate it because i need to do "getHighestBlockAt", but if its not generated, i cant return it