Item: rename onActivate() to onInteractBlock()

This commit is contained in:
Dylan K. Taylor
2020-11-09 19:33:13 +00:00
parent 8c480ffab9
commit 6cf875ca3a
7 changed files with 7 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ use pocketmine\world\sound\FlintSteelSound;
class FlintSteel extends Tool{
public function onActivate(Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : ItemUseResult{
public function onInteractBlock(Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : ItemUseResult{
if($blockReplace->getId() === BlockLegacyIds::AIR){
$world = $player->getWorld();
$world->setBlock($blockReplace->getPos(), VanillaBlocks::FIRE());