Skip to content

Commit

Permalink
Fixed the updating glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Exxarion committed May 2, 2015
1 parent b9415e5 commit 3d7c342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WorldGM/WorldGM.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function updatePlugin($sender) { //BETA
$dsc = \yaml_parse($lst);

$description = $this->getDescription();
if(version_compare($description->getVersion(), $dsc["version"]) < 1){
if($description->getVersion() !== $dsc['version']){
$this->getLogger()->info(TextFormat::YELLOW."WorldGM v".$dsc["version"]." has been released. Please download the latest version here:\n".TextFormat::GOLD."http://github.com/Exxarion/WorldGM/releases");
}else{
$this->getLogger()->info(TextFormat::GREEN."Your version is up-to-date!");
Expand Down

0 comments on commit 3d7c342

Please sign in to comment.