diff --git a/src/console/ConsoleCommandSender.php b/src/console/ConsoleCommandSender.php index 45ae2f5ab..3879ab016 100644 --- a/src/console/ConsoleCommandSender.php +++ b/src/console/ConsoleCommandSender.php @@ -78,7 +78,7 @@ class ConsoleCommandSender implements CommandSender{ } 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"); } $this->lineHeight = $height;