mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Block: Rename onActivate() -> onInteract()
This commit is contained in:
@ -58,7 +58,7 @@ class DragonEgg extends Transparent implements Fallable{
|
||||
return null;
|
||||
}
|
||||
|
||||
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{
|
||||
$this->teleport();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user