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; return false;
} }
break; break;
case 338:
case 83: //Sugarcane case 83: //Sugarcane
$data["block"] = 83;
$blockDown = $this->server->api->level->getBlock($data["x"], $data["y"] - 1, $data["z"]); $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){ if($blockDown[0] !== 2 and $blockDown[0] !== 3 and $blockDown[0] !== 12){
return false; return false;

View File

@ -245,6 +245,7 @@ class Material{
246 => true, 246 => true,
247 => true, 247 => true,
323 => true, //Special case of signs 323 => true, //Special case of signs
338 => 83,
); );
static $blocks = array( static $blocks = array(
0 => "Air", 0 => "Air",