mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 06:55:29 +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{
|
public function onReleaseUsing(Player $player) : bool{
|
||||||
if($player->isSurvival() and !$player->getInventory()->contains(ItemFactory::get(Item::ARROW, 0, 1))){
|
if($player->isSurvival() and !$player->getInventory()->contains(ItemFactory::get(Item::ARROW, 0, 1))){
|
||||||
$player->getInventory()->sendContents($player);
|
$player->getInventory()->sendContents($player);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$nbt = new CompoundTag("", [
|
$nbt = new CompoundTag("", [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user