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:
Dylan K. Taylor
2025-08-31 03:22:58 +01:00
parent f673159471
commit 9eee1a9a6e

View File

@ -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{