mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added Mushroom placement
This commit is contained in:
parent
a9c7a6642e
commit
3ecbe7dbf7
3 changed files with 21 additions and 18 deletions
|
|
@ -512,23 +512,6 @@ class BlockAPI{
|
|||
}
|
||||
|
||||
/*switch($data["block"]){
|
||||
case 6:
|
||||
if($target[0] === 60){
|
||||
break;
|
||||
}
|
||||
case 37:
|
||||
case 38:
|
||||
if(($target[0] !== 2 and $target[0] !== 3) or $data["face"] !== 1){
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 39://Mushrooms
|
||||
case 40:
|
||||
$blockDown = $this->server->api->level->getBlock($data["x"], $data["y"] - 1, $data["z"]);
|
||||
if(isset(Material::$transparent[$blockDown[0]])){
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 338:
|
||||
case 83: //Sugarcane
|
||||
$data["block"] = 83;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue