mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Added missing return to Bow, fixed #1329
This commit is contained in:
parent
697ea55fb7
commit
d07b5ba1e1
@ -51,6 +51,7 @@ class Bow extends Tool{
|
||||
public function onReleaseUsing(Player $player) : bool{
|
||||
if($player->isSurvival() and !$player->getInventory()->contains(ItemFactory::get(Item::ARROW, 0, 1))){
|
||||
$player->getInventory()->sendContents($player);
|
||||
return false;
|
||||
}
|
||||
|
||||
$nbt = new CompoundTag("", [
|
||||
|
Loading…
x
Reference in New Issue
Block a user