mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Added some missing typehints
This commit is contained in:
@ -186,7 +186,7 @@ class Chunk{
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function setBlock(int $x, int $y, int $z, $blockId = null, $meta = null) : bool{
|
||||
public function setBlock(int $x, int $y, int $z, ?int $blockId = null, ?int $meta = null) : bool{
|
||||
if($this->getSubChunk($y >> 4, true)->setBlock($x, $y & 0x0f, $z, $blockId !== null ? ($blockId & 0xff) : null, $meta !== null ? ($meta & 0x0f) : null)){
|
||||
$this->hasChanged = true;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user