Block: Rename onActivate() -> onInteract()

This commit is contained in:
Dylan K. Taylor
2019-02-28 17:35:30 +00:00
parent c9eb642afd
commit d679fb7546
29 changed files with 31 additions and 31 deletions

View File

@ -96,7 +96,7 @@ class FenceGate extends Transparent{
}
}
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->open = !$this->open;
if($this->open and $player !== null){
$playerFacing = $player->getHorizontalFacing();