mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Item: rename onActivate() to onInteractBlock()
This commit is contained in:
@@ -36,7 +36,7 @@ class Bucket extends Item{
|
||||
return 16;
|
||||
}
|
||||
|
||||
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{
|
||||
//TODO: move this to generic placement logic
|
||||
if($blockClicked instanceof Liquid and $blockClicked->isSource()){
|
||||
$stack = clone $this;
|
||||
|
Reference in New Issue
Block a user