Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tgwaste committed Apr 23, 2021
1 parent c768028 commit b9ab707
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/tgwaste/Weather/Listen.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ public function onEntityTeleportEvent(EntityTeleportEvent $event) {
$player = $event->getEntity();
$world = $event->getTo()->world;

if (!$player instanceof Player) {
return;
if ($player instanceof Player) {
(new Weather)->sendWeatherToPlayer($player, $world);
}

(new Weather)->sendWeatherToPlayer($player, $world);
}
}

0 comments on commit b9ab707

Please sign in to comment.