Fix MapPalette.getColor(byte) to use correct ranges for 1.12 color array
By: Nathan Wolf <nathan@elmakers.com>
This commit is contained in:
parent
864993ba5e
commit
e115450c3c
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ public final class MapPalette {
|
|||
*/
|
||||
@Deprecated
|
||||
public static Color getColor(byte index) {
|
||||
if ((index > -113 && index < 0) || index > 127) {
|
||||
if ((index > -49 && index < 0) || index > 127) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
} else {
|
||||
// Minecraft has 143 colors, some of which have negative byte representations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue