mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-19 04:05:31 +00:00
Fixed updater
This commit is contained in:
parent
73b9b2491f
commit
77e914238c
@ -124,9 +124,10 @@ class AutoUpdater{
|
||||
|
||||
if($currentVersion->compare($newVersion) > 0){
|
||||
$this->hasUpdate = true;
|
||||
}else{
|
||||
$this->hasUpdate = false;
|
||||
}
|
||||
|
||||
$this->hasUpdate = false;
|
||||
}
|
||||
|
||||
public function getChannel(){
|
||||
|
@ -83,7 +83,7 @@ class VersionString{
|
||||
}
|
||||
|
||||
public function getRelease(){
|
||||
return $this->generation . "." . $this->major . "." . $this->minor;
|
||||
return $this->generation . "." . $this->major . ($this->minor > 0 ? "." . $this->minor : "");
|
||||
}
|
||||
|
||||
public function getBuild(){
|
||||
@ -117,7 +117,7 @@ class VersionString{
|
||||
return 1; //Target is newer
|
||||
}elseif($target->getBuild() > $this->getBuild()){
|
||||
return 1;
|
||||
}elseif($target->getBuild() > $this->getBuild()){
|
||||
}elseif($target->getBuild() < $this->getBuild()){
|
||||
return -1;
|
||||
}else{
|
||||
return 0; //Same version
|
||||
|
Loading…
x
Reference in New Issue
Block a user