WaterLily: fixed broken placement logic

This commit is contained in:
Dylan K. Taylor 2018-09-20 12:49:36 +01:00
parent 058bd07319
commit 668da0772a

View File

@ -53,8 +53,8 @@ class WaterLily extends Flowable{
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
if($blockClicked instanceof Water){
$up = $blockClicked->getSide(Facing::UP);
if($up->getId() === Block::AIR){
return parent::place($item, $blockReplace, $blockClicked, $face, $clickVector, $player);
if($up->canBeReplaced()){
return parent::place($item, $up, $blockClicked, $face, $clickVector, $player);
}
}