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

@ -27,6 +27,9 @@ class WoodenDoor extends Item{
public function __construct($meta = 0, $count = 1){
$this->block = Block::get(Item::WOODEN_DOOR_BLOCK);
parent::__construct(self::WOODEN_DOOR, 0, $count, "Wooden Door");
$this->maxStackSize = 1;
}
public function getMaxStackSize(){
return 1;
}
}