mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Player: remove useless return value from dropItem()
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user