Item: Remove redundant Level parameter from onActivate()

there are three other sources this could be gotten from, an arbitrary level doesn't make sense.
This commit is contained in:
Dylan K. Taylor
2018-01-25 10:15:36 +00:00
parent 3842ee15cf
commit 6c8a1a5b80
6 changed files with 9 additions and 8 deletions

View File

@ -51,7 +51,7 @@ class Bucket extends Item implements Consumable{
return 0;
}
public function onActivate(Level $level, Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : bool{
public function onActivate(Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : bool{
$resultBlock = BlockFactory::get($this->meta);
if($resultBlock instanceof Air){