Handle 5 bit palette properly (1.16.1)
This commit is contained in:
parent
1c82497d81
commit
79b41d8ffd
7 changed files with 130 additions and 7 deletions
|
|
@ -207,8 +207,10 @@ public class MapChunkCache115 extends AbstractMapChunkCache {
|
|||
if (palette[pi] == null) {
|
||||
palette[pi] = DynmapBlockState.AIR;
|
||||
}
|
||||
}
|
||||
int bitsperblock = (statelist.length * 64) / 4096;
|
||||
}
|
||||
int recsperblock = (4096 + statelist.length - 1) / statelist.length;
|
||||
int bitsperblock = 64 / recsperblock;
|
||||
|
||||
DataBits db = new DataBits(bitsperblock, 4096, statelist);
|
||||
if (bitsperblock > 8) { // Not palette
|
||||
for (int j = 0; j < 4096; j++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue