mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 21:37:39 +01:00
SPIGOT-6646: Issue with map palette ranges
By: md_5 <git@md-5.net>
This commit is contained in:
parent
64a83e2da9
commit
16922e92de
@ -263,11 +263,7 @@ public final class MapPalette {
|
||||
@Deprecated
|
||||
@NotNull
|
||||
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
|
||||
return colors[index >= 0 ? index : index + 256];
|
||||
}
|
||||
// Minecraft has 143 colors, some of which have negative byte representations
|
||||
return colors[index >= 0 ? index : index + 256];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user