3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-08 13:52:50 +02:00

Correct directPallette check (Thanks @Pokechu22)

Dieser Commit ist enthalten in:
Matsv 2018-07-18 23:39:23 +02:00
Ursprung c3eaf5a1b0
Commit dfd18d64c2
4 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -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;
}

Datei anzeigen

@ -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;
}

Datei anzeigen

@ -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;
}

Datei anzeigen

@ -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;
}