mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added some missing typehints
This commit is contained in:
@ -93,7 +93,7 @@ class SubChunk implements SubChunkInterface{
|
||||
}
|
||||
}
|
||||
|
||||
public function setBlock(int $x, int $y, int $z, $id = null, $data = null) : bool{
|
||||
public function setBlock(int $x, int $y, int $z, ?int $id = null, ?int $data = null) : bool{
|
||||
$i = ($x << 8) | ($z << 4) | $y;
|
||||
$changed = false;
|
||||
if($id !== null){
|
||||
|
Reference in New Issue
Block a user