xSuperr / VanillaBlocks

A plugin to add more blocks to PocketMine
GNU General Public License v3.0
26 stars 12 forks source link

Upgrade Seapickle #42

Closed YaNIND closed 2 years ago

YaNIND commented 3 years ago

maybe you can use example in concretepowder

xSuperr commented 3 years ago

Please provide more context.

YaNIND commented 3 years ago
private function checkAdjacentWater() : ?Block{
    for($i = 1; $i < 6; ++$i){ //Do not check underneath
        if($this->getSide($i) instanceof Water){
            return BlockFactory::get(Block::CONCRETE, $this->meta);
        }
    }

    return null;
}
YaNIND commented 3 years ago

trying this?

xSuperr commented 3 years ago

No, why is it needed? If you are talking about Sea Pickles only being able to be placed in water, check the waterlogging issue.