Fixed ItemBlock->setDamage() not returning a value

This commit is contained in:
Dylan K. Taylor 2017-11-07 09:44:34 +00:00
parent 23bc97e098
commit a2d4baf8b9

View File

@ -42,8 +42,8 @@ class ItemBlock extends Item{
}
public function setDamage(int $meta){
$this->meta = $meta;
$this->block->setDamage($this->meta !== -1 ? $this->meta & 0xf : 0);
$this->block->setDamage($meta !== -1 ? $meta & 0xf : 0);
return parent::setDamage($meta);
}
public function getBlock() : Block{