geforkt von Mirrors/Paper
Fix MapPalette.getColor(byte) to use correct ranges for 1.12 color array
By: Nathan Wolf <nathan@elmakers.com>
Dieser Commit ist enthalten in:
Ursprung
864993ba5e
Commit
e115450c3c
@ -246,7 +246,7 @@ public final class MapPalette {
|
|||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static Color getColor(byte index) {
|
public static Color getColor(byte index) {
|
||||||
if ((index > -113 && index < 0) || index > 127) {
|
if ((index > -49 && index < 0) || index > 127) {
|
||||||
throw new IndexOutOfBoundsException();
|
throw new IndexOutOfBoundsException();
|
||||||
} else {
|
} else {
|
||||||
// Minecraft has 143 colors, some of which have negative byte representations
|
// Minecraft has 143 colors, some of which have negative byte representations
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren