Skip to content

Commit

Permalink
Fixed possible crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Shock95 committed Sep 6, 2020
1 parent 7c739b7 commit cee0c1e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: AuctionHouse
main: shock95x\auctionhouse\AuctionHouse
version: 1.2.2
version: 1.2.3
api: 3.0.0
author: Shock95x
softdepend: [EconomyAPI, InvCrashFix]
Expand Down
2 changes: 1 addition & 1 deletion src/shock95x/auctionhouse/menu/MainMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function __construct(Player $player, Item $item) {
}

public function onRun(int $currentTick) {
new ConfirmPurchaseMenu($this->player, $this->item);
if($this->player->isOnline()) new ConfirmPurchaseMenu($this->player, $this->item);
}
}, 10);
}
Expand Down
2 changes: 1 addition & 1 deletion src/shock95x/auctionhouse/menu/admin/AdminMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function __construct(Player $player, Listing $listing) {
}

public function onRun(int $currentTick) {
new ManageListingMenu($this->player, $this->listing);
if($this->player->isOnline()) new ManageListingMenu($this->player, $this->listing);
}
}, 10);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct(Player $player, Item $item) {
}

public function onRun(int $currentTick) {
new ConfirmPurchaseMenu($this->player, $this->item);
if($this->player->isOnline()) new ConfirmPurchaseMenu($this->player, $this->item);
}
}, 10);
}
Expand Down

0 comments on commit cee0c1e

Please sign in to comment.