Skip to content

Commit

Permalink
8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Exxarion committed Jul 5, 2015
1 parent 6103ad3 commit 8626939
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WorldGM/PlayerEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public function __construct(WorldGM $plugin) {
}

public function onLevelChange(EntityLevelChangeEvent $event) {
$entity = $event->getEntity();
if ($entity instanceof Player) {
$this->plugin->checkPlayer($entity);
$player = $event->getEntity();
if ($player instanceof Player) {
$this->plugin->checkPlayer($player);
}
}

Expand Down

0 comments on commit 8626939

Please sign in to comment.