mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
backport 342b48b75: VersionString: Use the correct bitwise operators
This commit is contained in:
parent
6161155660
commit
d0d300a6f8
@ -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