Player: remove useless return value from dropItem()

This commit is contained in:
Dylan K. Taylor
2018-08-05 12:55:12 +01:00
parent ea9415961b
commit 90f80782d4
2 changed files with 5 additions and 9 deletions

View File

@@ -57,7 +57,8 @@ class DropItemAction extends InventoryAction{
* @return bool
*/
public function execute(Player $source) : bool{
return $source->dropItem($this->targetItem);
$source->dropItem($this->targetItem);
return true;
}
public function onExecuteSuccess(Player $source) : void{