mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Banner: don't bail on missing type tags
we didn't set these prior to 5.33.0, so these won't be present on older worlds.
This commit is contained in:
@ -82,7 +82,7 @@ class Banner extends Spawnable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->type = $nbt->getInt(self::TAG_TYPE);
|
$this->type = $nbt->getInt(self::TAG_TYPE, self::TYPE_NORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function writeSaveData(CompoundTag $nbt) : void{
|
protected function writeSaveData(CompoundTag $nbt) : void{
|
||||||
|
Reference in New Issue
Block a user