SPIGOT-5841: New map colours broken

This commit is contained in:
md_5 2020-06-27 09:04:58 +10:00
parent edc7a378c9
commit e4db04aeb2
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -260,7 +260,7 @@ public final class MapPalette {
@Deprecated
@NotNull
public static Color getColor(byte index) {
if ((index > -49 && index < 0) || index > 127) {
if ((index > -21 && index < 0) || index > 127) {
throw new IndexOutOfBoundsException();
} else {
// Minecraft has 143 colors, some of which have negative byte representations