mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 19:24:12 +00:00
Block: Rename onActivate() -> onInteract()
This commit is contained in:
@ -31,7 +31,7 @@ use pocketmine\Player;
|
||||
|
||||
class CoarseDirt extends Dirt{
|
||||
|
||||
public function onActivate(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
||||
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
||||
if($face === Facing::UP and $item instanceof Hoe){
|
||||
$item->applyDamage(1);
|
||||
$this->getLevel()->setBlock($this, BlockFactory::get(Block::DIRT));
|
||||
|
Reference in New Issue
Block a user