mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed placing Saplings in farmland
This commit is contained in:
parent
a7cc37ead6
commit
ada2662627
2 changed files with 41 additions and 46 deletions
|
|
@ -193,17 +193,10 @@ class BlockAPI{
|
|||
case 59:
|
||||
case 105:
|
||||
if($data["block"] === 351 and $data["meta"] === 0x0F){ //Bonemeal
|
||||
switch($target[0]){
|
||||
case 59:
|
||||
case 105:
|
||||
$data["block"] = $target[0];
|
||||
$data["meta"] = 0x07;
|
||||
$this->server->trigger("player.block.place", $data);
|
||||
$this->updateBlocksAround($data["x"], $data["y"], $data["z"], BLOCK_UPDATE_NORMAL);
|
||||
break;
|
||||
case 6:
|
||||
break;
|
||||
}
|
||||
$data["block"] = $target[0];
|
||||
$data["meta"] = 0x07;
|
||||
$this->server->trigger("player.block.place", $data);
|
||||
$this->updateBlocksAround($data["x"], $data["y"], $data["z"], BLOCK_UPDATE_NORMAL);
|
||||
$cancelPlace = true;
|
||||
}
|
||||
break;
|
||||
|
|
@ -296,7 +289,7 @@ class BlockAPI{
|
|||
switch($data["block"]){
|
||||
case 6:
|
||||
if($target[0] === 60){
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
case 37:
|
||||
case 38:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue