Skip to content

Commit

Permalink
integer error
Browse files Browse the repository at this point in the history
  • Loading branch information
VeronicaDiazTaylor committed Jun 10, 2018
1 parent 9e92f7b commit 1f106f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/economysignbusiness/utils/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function purchaseItem($player, $tapBlock)
$player->sendMessage("§cクリエイティブモードでは購入できません");
return;
}
$item = Item::get($data["ID"], $data["META"], $data["COUNT"]);
$item = Item::get((int) $data["ID"], (int) $data["META"], (int) $data["COUNT"]);
if (!$player->getInventory()->canAddItem($item)) {
$player->sendMessage("§c手持ちが一杯で持てません");
return;
Expand Down Expand Up @@ -82,7 +82,7 @@ public function sellItem($player, $tapBlock)
$player->sendMessage("§cクリエイティブモードでは売却できません");
return;
}
$item = Item::get($data["ID"], $data["META"], $data["COUNT"]);
$item = Item::get((int) $data["ID"], (int) $data["META"], (int) $data["COUNT"]);
if (!$player->getInventory()->contains($item)) {
$player->sendMessage("§c資材が足りません");
return;
Expand Down

0 comments on commit 1f106f8

Please sign in to comment.