mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
VersionString: Use multiplication instead of bitshift for version IDs
this makes them more recognizable, and also fixes #4630. This is technically a BC break (behavioural change), but since nothing appears to use this functionality anyway except PM itself, I don't think it matters.
This commit is contained in:
parent
de82424fb2
commit
482bc462d3
@ -68,7 +68,7 @@ class VersionString{
|
||||
}
|
||||
|
||||
public function getNumber() : int{
|
||||
return (($this->major << 9) | ($this->minor << 5) | $this->patch);
|
||||
return (($this->major * 1_000_000) + ($this->minor * 1_000) + $this->patch);
|
||||
}
|
||||
|
||||
public function getBaseVersion() : string{
|
||||
|
Loading…
x
Reference in New Issue
Block a user