Merge pull request #394 from Eoghanmc22/patch-0

Fix a bug with the map api
This commit is contained in:
TheMode 2021-08-07 13:57:53 +02:00 committed by GitHub
commit 3c660383e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ public interface LargeFramebuffer {
final int height = Math.min(height(), top + Framebuffer.HEIGHT) - top;
for (int y = top; y < height; y++) {
for (int x = left; x < width; x++) {
final byte color = getMapColor(left, top);
final byte color = getMapColor(x, y);
colors[Framebuffer.index(x - left, y - top)] = color;
}
}