mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Fix for sugarcane placing
This commit is contained in:
parent
8d6d5306c1
commit
69d2557e32
@ -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;
|
||||
|
@ -245,6 +245,7 @@ class Material{
|
||||
246 => true,
|
||||
247 => true,
|
||||
323 => true, //Special case of signs
|
||||
338 => 83,
|
||||
);
|
||||
static $blocks = array(
|
||||
0 => "Air",
|
||||
|
Loading…
x
Reference in New Issue
Block a user