Improved Item property handling

This commit is contained in:
Shoghi Cervantes
2014-12-07 15:51:00 +01:00
parent a98da3bab1
commit 7506f01302
17 changed files with 103 additions and 31 deletions

View File

@ -28,7 +28,7 @@ use pocketmine\block\Block;
*/
class ItemBlock extends Item{
public function __construct(Block $block, $meta = 0, $count = 1){
$this->block = clone $block;
$this->block = $block;
parent::__construct($block->getId(), $block->getDamage(), $count, $block->getName());
}