mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 04:38:35 +00:00
Replace disallowed operators in src/console/
This commit is contained in:
parent
6846f1e78a
commit
22bc3bc3f9
@ -78,7 +78,7 @@ class ConsoleCommandSender implements CommandSender{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function setScreenLineHeight(?int $height) : void{
|
public function setScreenLineHeight(?int $height) : void{
|
||||||
if($height !== null and $height < 1){
|
if($height !== null && $height < 1){
|
||||||
throw new \InvalidArgumentException("Line height must be at least 1");
|
throw new \InvalidArgumentException("Line height must be at least 1");
|
||||||
}
|
}
|
||||||
$this->lineHeight = $height;
|
$this->lineHeight = $height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user