diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 322ccb0d5..aa1fc6ac0 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -132,7 +132,7 @@ class BlockAPI{ if(($player = $this->server->api->player->get($username)) !== false){ $this->drop(new Vector3($player->entity->x - 0.5, $player->entity->y, $player->entity->z - 0.5), $item, true); - $output .= "Giving ".$amount." of ".$item->getName()." (".$item->getID().":".$item->getMetadata().") to ".$username."\n"; + $output .= "Giving ".$item->count." of ".$item->getName()." (".$item->getID().":".$item->getMetadata().") to ".$username."\n"; }else{ $output .= "Unknown player\n"; } diff --git a/src/material/item/generic/SignItem.php b/src/material/item/generic/SignItem.php index 38f38b067..e162d6fee 100644 --- a/src/material/item/generic/SignItem.php +++ b/src/material/item/generic/SignItem.php @@ -28,6 +28,7 @@ the Free Software Foundation, either version 3 of the License, or class SignItem extends Item{ public function __construct($meta = 0, $count = 1){ $this->block = BlockAPI::get(SIGN_POST); + $this->maxStackSize = 16; parent::__construct(SIGN, 0, $count, "Sign"); } } \ No newline at end of file