mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Replace disallowed operators in src/item/
This commit is contained in:
@@ -38,7 +38,7 @@ class Bucket extends Item{
|
||||
|
||||
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()){
|
||||
if($blockClicked instanceof Liquid && $blockClicked->isSource()){
|
||||
$stack = clone $this;
|
||||
$stack->pop();
|
||||
|
||||
|
Reference in New Issue
Block a user