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

@ -1854,7 +1854,7 @@ class Level implements ChunkManager, Metadatable{
return true;
}
if(!$player->isSneaking() and $item->onActivate($this, $player, $blockReplace, $blockClicked, $face, $clickVector)){
if(!$player->isSneaking() and $item->onActivate($player, $blockReplace, $blockClicked, $face, $clickVector)){
return true;
}
}else{