mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-21 19:04:15 +00:00
Sugarcane: allow placement on podzol (#4094)
This commit is contained in:
parent
eb9b644447
commit
8dd900a2c6
@ -125,7 +125,7 @@ class Sugarcane extends Flowable{
|
|||||||
$down = $this->getSide(Facing::DOWN);
|
$down = $this->getSide(Facing::DOWN);
|
||||||
if($down->isSameType($this)){
|
if($down->isSameType($this)){
|
||||||
return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
||||||
}elseif($down->getId() === BlockLegacyIds::GRASS or $down->getId() === BlockLegacyIds::DIRT or $down->getId() === BlockLegacyIds::SAND){
|
}elseif($down->getId() === BlockLegacyIds::GRASS or $down->getId() === BlockLegacyIds::DIRT or $down->getId() === BlockLegacyIds::SAND or $down->getId() === BlockLegacyIds::PODZOL){
|
||||||
foreach(Facing::HORIZONTAL as $side){
|
foreach(Facing::HORIZONTAL as $side){
|
||||||
if($down->getSide($side) instanceof Water){
|
if($down->getSide($side) instanceof Water){
|
||||||
return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user