mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Improved Item property handling
This commit is contained in:
@ -34,9 +34,12 @@ abstract class Tool extends Item{
|
||||
|
||||
public function __construct($id, $meta = 0, $count = 1, $name = "Unknown"){
|
||||
parent::__construct($id, $meta, $count, $name);
|
||||
$this->maxStackSize = 1;
|
||||
}
|
||||
|
||||
public function getMaxStackSize(){
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: Move this to each item
|
||||
*
|
||||
|
Reference in New Issue
Block a user