Skip to content

Commit

Permalink
Fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris-Driv authored Apr 13, 2017
1 parent 8943395 commit fc1b2b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/factions/entity/Faction.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@ public function getLastOnline(): int
*/
public function verifyHome()
{
if ($this->home == null) return;
if ($this->home === null) return;
if ($this->isValidHome($this->home)) return;
$this->home = null;
$this->save();
$this->sendMessage(Localizer::translatable("home-out-of-bounds"));
}

public function isValidHome(Position $home): bool
public function isValidHome($home): bool
{
if ($home === null) return false;
if (!$home instanceof Position) return false;
Expand Down

0 comments on commit fc1b2b2

Please sign in to comment.