From dbc347b93f4c070c186a84c23b487edddf2a503d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 27 Jun 2020 09:05:09 +1000 Subject: [PATCH] SPIGOT-5841: New map colours broken --- src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java b/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java index 2b0d7f841b..2c21c5a44d 100644 --- a/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java +++ b/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java @@ -164,7 +164,7 @@ public final class CraftMapView implements MapView { for (int i = 0; i < buf.length; ++i) { byte color = buf[i]; // There are 208 valid color id's, 0 -> 127 and -128 -> -49 - if (color >= 0 || color <= -49) render.buffer[i] = color; + if (color >= 0 || color <= -21) render.buffer[i] = color; } for (int i = 0; i < canvas.getCursors().size(); ++i) {