mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
SPIGOT-3331: New map colours don't display
This commit is contained in:
parent
ec47e791bd
commit
f85977ae6f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user