Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelwhiz committed Aug 9, 2024
1 parent 6d536bf commit b53d1f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,10 @@ public function __construct(Minecart $entity, int $amount, int $price) {
public function onRun(): void
{
$player = $this->entity->getTargetEntity();
if (!$player instanceof Player) return;
if (!$player instanceof Player) {
$this->getHandler()->cancel();
return;
}
$entity = $this->entity;
$amount = $this->amount;
$price = $this->price;
Expand Down

0 comments on commit b53d1f6

Please sign in to comment.