mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Fix for sugarcane placing
This commit is contained in:
@@ -611,7 +611,9 @@ class BlockAPI{
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 338:
|
||||
case 83: //Sugarcane
|
||||
$data["block"] = 83;
|
||||
$blockDown = $this->server->api->level->getBlock($data["x"], $data["y"] - 1, $data["z"]);
|
||||
if($blockDown[0] !== 2 and $blockDown[0] !== 3 and $blockDown[0] !== 12){
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user