Fix new map colors rendering as transparent
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -164,8 +164,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 208 valid color id's, 0 -> 127 and -128 -> -49
|
||||
if (color >= 0 || color <= -21) render.buffer[i] = color;
|
||||
// There are 248 valid color id's, 0 -> 127 and -128 -> -9
|
||||
if (color >= 0 || color <= -9) render.buffer[i] = color;
|
||||
}
|
||||
|
||||
for (int i = 0; i < canvas.getCursors().size(); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user