mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
VersionString: Use the correct bitwise operators
This commit is contained in:
parent
c310a0c50c
commit
342b48b758
@ -70,7 +70,7 @@ class VersionString{
|
||||
}
|
||||
|
||||
public function getNumber() : int{
|
||||
return (($this->major << 9) + ($this->minor << 5) + $this->patch);
|
||||
return (($this->major << 9) | ($this->minor << 5) | $this->patch);
|
||||
}
|
||||
|
||||
public function getBaseVersion() : string{
|
||||
|
Loading…
x
Reference in New Issue
Block a user