From 69d2557e32855fdced284f5cee471851278e86a3 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 2 Feb 2013 18:50:54 +0100 Subject: [PATCH] Fix for sugarcane placing --- src/API/BlockAPI.php | 2 ++ src/classes/Data.php | 1 + 2 files changed, 3 insertions(+) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 6136e8a5c..13fdc4c9c 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -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; diff --git a/src/classes/Data.php b/src/classes/Data.php index e11a1dde9..15b441042 100644 --- a/src/classes/Data.php +++ b/src/classes/Data.php @@ -245,6 +245,7 @@ class Material{ 246 => true, 247 => true, 323 => true, //Special case of signs + 338 => 83, ); static $blocks = array( 0 => "Air",