mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-05 06:51:22 +01:00
Skip size varint when reading single palette (#2592)
This commit is contained in:
parent
1d0f512256
commit
a556e5a8f2
@ -115,6 +115,7 @@ public interface Palette {
|
||||
if (bitsPerEntry == 0) {
|
||||
// Single valued 0-0
|
||||
final int value = buffer.read(VAR_INT);
|
||||
buffer.read(VAR_INT); // Skip size
|
||||
return new PaletteSingle((byte) dimension, value);
|
||||
} else if (bitsPerEntry >= minIndirect && bitsPerEntry <= maxIndirect) {
|
||||
// Indirect palette
|
||||
|
Loading…
Reference in New Issue
Block a user