Fix for sugarcane placing

This commit is contained in:
Shoghi Cervantes Pueyo
2013-02-02 18:50:54 +01:00
parent 8d6d5306c1
commit 69d2557e32
2 changed files with 3 additions and 0 deletions

View File

@@ -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;