mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
Fixed buckets being able to delete any block
This commit is contained in:
parent
0ff6b7b572
commit
7b0ce16b12
@ -79,7 +79,7 @@ class Bucket extends Item implements Consumable{
|
||||
$player->getInventory()->sendContents($player);
|
||||
}
|
||||
}
|
||||
}elseif($resultBlock instanceof Liquid){
|
||||
}elseif($resultBlock instanceof Liquid and $blockReplace->canBeReplaced()){
|
||||
$resultItem = clone $this;
|
||||
$resultItem->setDamage(0);
|
||||
$player->getServer()->getPluginManager()->callEvent($ev = new PlayerBucketEmptyEvent($player, $blockReplace, $face, $this, $resultItem));
|
||||
|
Loading…
x
Reference in New Issue
Block a user