Skip to content

Commit

Permalink
poggit y u lying to me? there's no syntax errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
iZeaoGamer authored Mar 17, 2020
1 parent 3cbaa36 commit 8f7b76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iZeaoGamer/WorldBorder/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function Boarder(PlayerMoveEvent $event){
$spawn = $this->getServer()->getDefaultLevel()->getSpawnLocation();
}else{
if($this->config->get("spawn-location")){
$spawn = $this->getServer()->getLevelByName($this->config->get("worlds")->getSpawnLocation());
$spawn = $event->getPlayer()->getLevel()->getSpawnLocation();
}else{
$spawn = new Vector3($this->config->get("spawn-coordinates"));
}
Expand Down

0 comments on commit 8f7b76e

Please sign in to comment.