diff --git a/src/EssentialsPE/Loader.php b/src/EssentialsPE/Loader.php index 4c5da036..b445bccf 100644 --- a/src/EssentialsPE/Loader.php +++ b/src/EssentialsPE/Loader.php @@ -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]]; }