mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +01:00
SPIGOT-3331: New map colours don't display
This commit is contained in:
parent
ec47e791bd
commit
f85977ae6f
1 changed files with 2 additions and 2 deletions
|
@ -148,8 +148,8 @@ public final class CraftMapView implements MapView {
|
||||||
byte[] buf = canvas.getBuffer();
|
byte[] buf = canvas.getBuffer();
|
||||||
for (int i = 0; i < buf.length; ++i) {
|
for (int i = 0; i < buf.length; ++i) {
|
||||||
byte color = buf[i];
|
byte color = buf[i];
|
||||||
// There are 143 valid color id's, 0 -> 127 and -128 -> -113
|
// There are 208 valid color id's, 0 -> 127 and -128 -> -49
|
||||||
if (color >= 0 || color <= -113) render.buffer[i] = color;
|
if (color >= 0 || color <= -49) render.buffer[i] = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < canvas.getCursors().size(); ++i) {
|
for (int i = 0; i < canvas.getCursors().size(); ++i) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue