SPIGOT-3331: New map colours don't display

This commit is contained in:
md_5 2017-06-12 19:16:30 +10:00
parent ec47e791bd
commit f85977ae6f

View File

@ -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) {