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 198c4c39d..b937441d2 100644 --- a/paper-api/src/main/java/org/bukkit/map/MapPalette.java +++ b/paper-api/src/main/java/org/bukkit/map/MapPalette.java @@ -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]; } }