mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
used namespacer
This commit is contained in:
@@ -21,10 +21,11 @@
|
||||
|
||||
namespace PocketMine\Item;
|
||||
use PocketMine;
|
||||
use PocketMine\Block\Block as Block;
|
||||
|
||||
class Sugarcane extends Item{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
$this->block = Block\Block::get(SUGARCANE_BLOCK);
|
||||
$this->block = Block::get(SUGARCANE_BLOCK);
|
||||
parent::__construct(SUGARCANE, 0, $count, "Sugar Cane");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user