World: Section: fix biome palette size check

We were accidentally checking the block type palette size.
This commit is contained in:
Matthias Schiffer 2021-12-12 10:28:17 +01:00
parent 73dfecf379
commit d18e004743
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -107,7 +107,7 @@ PaletteSection::PaletteSection(
while ((1u << biomeBits) < biomePaletteData->size()) {
biomeBits++;
if (bits > 6)
if (biomeBits > 6)
throw std::invalid_argument("unsupported biome palette size");
}
}