mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Cactus Placement
This commit is contained in:
parent
7e7f1892fd
commit
3e87d1927d
3 changed files with 18 additions and 17 deletions
|
|
@ -42,7 +42,7 @@ class SugarcaneBlock extends TransparentBlock{
|
|||
if($down->getID() === SUGARCANE_BLOCK){
|
||||
$level->setBlock($block, $this->id, 0);
|
||||
return true;
|
||||
}elseif($down->getID() === 2 or $down->getID() === 3 or $down->getID() === 12){
|
||||
}elseif($down->getID() === GRASS or $down->getID() === DIRT or $down->getID() === SAND){
|
||||
$block0 = $level->getBlockFace($down, 2);
|
||||
$block1 = $level->getBlockFace($down, 3);
|
||||
$block2 = $level->getBlockFace($down, 4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue