Added missing return to Bow, fixed #1329

This commit is contained in:
Dylan K. Taylor 2017-08-27 20:40:30 +01:00
parent 697ea55fb7
commit d07b5ba1e1

View File

@ -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("", [