diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 7f8391a46..814f43d37 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -171,7 +171,6 @@ class BlockAPI{ "block" => $block->getID(), "meta" => $block->getMetadata() )); - $player->sendInventory(); return false; } diff --git a/src/Player.php b/src/Player.php index 27b9c8507..ed750b654 100644 --- a/src/Player.php +++ b/src/Player.php @@ -270,7 +270,7 @@ class Player{ public function sendInventorySlot($s){ $s = (int) $s; - if(!isset($this->inventory[$s])){ + if(!isset($this->inventory[$s]) or $this->server->api->getProperty("disallow-crafting") === false){ return false; }