mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Fixed ItemBlock->setDamage() not returning a value
This commit is contained in:
parent
23bc97e098
commit
a2d4baf8b9
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user