mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09:39 +00:00
Fixed no-NBT banner items always placing black banners, closes #2624
This commit is contained in:
parent
3b183447b0
commit
ff3d2ba19e
@ -55,7 +55,7 @@ class Banner extends Item{
|
|||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getBaseColor() : int{
|
public function getBaseColor() : int{
|
||||||
return $this->getNamedTag()->getInt(self::TAG_BASE, 0);
|
return $this->getNamedTag()->getInt(self::TAG_BASE, $this->getDamage());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user