From f85977ae6f4ca213347d04c48cc93058ed742db5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 12 Jun 2017 19:16:30 +1000 Subject: [PATCH] SPIGOT-3331: New map colours don't display --- src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java b/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java index 6c42708cc6..625ef96b4a 100644 --- a/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java +++ b/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java @@ -148,8 +148,8 @@ public final class CraftMapView implements MapView { byte[] buf = canvas.getBuffer(); for (int i = 0; i < buf.length; ++i) { byte color = buf[i]; - // There are 143 valid color id's, 0 -> 127 and -128 -> -113 - if (color >= 0 || color <= -113) render.buffer[i] = color; + // There are 208 valid color id's, 0 -> 127 and -128 -> -49 + if (color >= 0 || color <= -49) render.buffer[i] = color; } for (int i = 0; i < canvas.getCursors().size(); ++i) {