From e115450c3cad0ffbe96e413469299d0c530bb5e5 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 22 Jun 2017 13:13:46 -0700 Subject: [PATCH] Fix MapPalette.getColor(byte) to use correct ranges for 1.12 color array By: Nathan Wolf --- paper-api/src/main/java/org/bukkit/map/MapPalette.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/map/MapPalette.java b/paper-api/src/main/java/org/bukkit/map/MapPalette.java index eed08ddef7..2c27d0c93b 100644 --- a/paper-api/src/main/java/org/bukkit/map/MapPalette.java +++ b/paper-api/src/main/java/org/bukkit/map/MapPalette.java @@ -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