mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Replace disallowed operators in src/world/
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user