Fixed buckets being able to delete any block

This commit is contained in:
Dylan K. Taylor 2018-06-13 17:05:51 +01:00
parent 0ff6b7b572
commit 7b0ce16b12

View File

@ -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));