mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 17:52:02 -07:00
@@ -263,11 +263,7 @@ public final class MapPalette {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
@NotNull
|
@NotNull
|
||||||
public static Color getColor(byte index) {
|
public static Color getColor(byte index) {
|
||||||
if ((index > -21 && index < 0) || index > 127) {
|
|
||||||
throw new IndexOutOfBoundsException();
|
|
||||||
} else {
|
|
||||||
// Minecraft has 143 colors, some of which have negative byte representations
|
// Minecraft has 143 colors, some of which have negative byte representations
|
||||||
return colors[index >= 0 ? index : index + 256];
|
return colors[index >= 0 ? index : index + 256];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user