mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 17:44:52 +01:00
World: Section: fix biome palette size check
We were accidentally checking the block type palette size.
This commit is contained in:
parent
73dfecf379
commit
d18e004743
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ PaletteSection::PaletteSection(
|
||||||
while ((1u << biomeBits) < biomePaletteData->size()) {
|
while ((1u << biomeBits) < biomePaletteData->size()) {
|
||||||
biomeBits++;
|
biomeBits++;
|
||||||
|
|
||||||
if (bits > 6)
|
if (biomeBits > 6)
|
||||||
throw std::invalid_argument("unsupported biome palette size");
|
throw std::invalid_argument("unsupported biome palette size");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue