mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-23 23:21:35 +01:00
Correct directPallette check (Thanks @Pokechu22)
This commit is contained in:
parent
c3eaf5a1b0
commit
dfd18d64c2
@ -123,7 +123,7 @@ public class ChunkSection1_13 implements ChunkSection {
|
||||
if (bitsPerBlock < 4) {
|
||||
bitsPerBlock = 4;
|
||||
}
|
||||
if (bitsPerBlock > 9) {
|
||||
if (bitsPerBlock >= 9) {
|
||||
directPalette = true;
|
||||
bitsPerBlock = 14;
|
||||
}
|
||||
@ -234,7 +234,7 @@ public class ChunkSection1_13 implements ChunkSection {
|
||||
bitsPerBlock++;
|
||||
}
|
||||
boolean directPalette = false;
|
||||
if (bitsPerBlock > 9) {
|
||||
if (bitsPerBlock >= 9) {
|
||||
bitsPerBlock = 14;
|
||||
directPalette = true;
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ public class ChunkSection1_9_3_4 implements ChunkSection {
|
||||
bitsPerBlock++;
|
||||
}
|
||||
boolean directPalette = false;
|
||||
if (bitsPerBlock > 9) {
|
||||
if (bitsPerBlock >= 9) {
|
||||
bitsPerBlock = 14;
|
||||
directPalette = true;
|
||||
}
|
||||
|
@ -249,7 +249,7 @@ public class ChunkSection1_9_1_2 implements ChunkSection {
|
||||
bitsPerBlock++;
|
||||
}
|
||||
boolean directPalette = false;
|
||||
if (bitsPerBlock > 9) {
|
||||
if (bitsPerBlock >= 9) {
|
||||
bitsPerBlock = 14;
|
||||
directPalette = true;
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ public class ChunkSection1_9to1_8 implements ChunkSection {
|
||||
bitsPerBlock++;
|
||||
}
|
||||
boolean directPalette = false;
|
||||
if (bitsPerBlock > 9) {
|
||||
if (bitsPerBlock >= 9) {
|
||||
bitsPerBlock = 14;
|
||||
directPalette = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user