mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Improved Item property handling
This commit is contained in:
@ -26,7 +26,10 @@ use pocketmine\block\Block;
|
||||
class Cake extends Item{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
$this->block = Block::get(Item::CAKE_BLOCK);
|
||||
$this->maxStackSize = 1;
|
||||
parent::__construct(self::CAKE, 0, $count, "Cake");
|
||||
}
|
||||
|
||||
public function getMaxStackSize(){
|
||||
return 1;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user