Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Commit

Permalink
Ooops xD
Browse files Browse the repository at this point in the history
  • Loading branch information
iksaku committed Dec 28, 2014
1 parent 2d52aad commit f389b2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EssentialsPE/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -1442,11 +1442,11 @@ public function getWarp($warp){
return false;
}
$v = $this->warps->get(strtolower($warp));
if(!$this->getServer()->isLevelLoaded($v[4])){
if(!$this->getServer()->isLevelGenerated($v[4])){
if(!$this->getServer()->isLevelLoaded($v[3])){
if(!$this->getServer()->isLevelGenerated($v[3])){
return false;
}
$this->getServer()->loadLevel($v[4]);
$this->getServer()->loadLevel($v[3]);
}
return [new Position($v[0], $v[1], $v[2], $this->getServer()->getLevelByName($v[3])), $v[4], $v[5]];
}
Expand Down

0 comments on commit f389b2f

Please sign in to comment.