Replace disallowed operators in src/world/

This commit is contained in:
Dylan K. Taylor
2022-01-20 19:05:23 +00:00
parent 282b430b1f
commit aae5962f6a
30 changed files with 102 additions and 102 deletions

View File

@ -44,7 +44,7 @@ class DragonEggTeleportParticle implements Particle{
}
private static function boundOrThrow(int $v) : int{
if($v < -255 or $v > 255){
if($v < -255 || $v > 255){
throw new \InvalidArgumentException("Value must be between -255 and 255");
}
return $v;