mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Generate methods for surrogate enums, nip stupidity in the bud
this also allows changing the internal implementation later without breaking plugins.
This commit is contained in:
@ -225,7 +225,7 @@ class Banner extends Item{
|
||||
public function correctNBT() : void{
|
||||
$tag = $this->getNamedTag();
|
||||
if(!$tag->hasTag(self::TAG_BASE, IntTag::class)){
|
||||
$tag->setInt(self::TAG_BASE, DyeColor::$BLACK->getInvertedMagicNumber());
|
||||
$tag->setInt(self::TAG_BASE, DyeColor::BLACK()->getInvertedMagicNumber());
|
||||
}
|
||||
|
||||
if(!$tag->hasTag(self::TAG_PATTERNS, ListTag::class)){
|
||||
|
Reference in New Issue
Block a user