mirror of
https://github.com/Minestom/Minestom.git
synced 2024-08-20 11:22:51 +02:00
Merge pull request #394 from Eoghanmc22/patch-0
Fix a bug with the map api
This commit is contained in:
commit
3c660383e5
|
@ -37,7 +37,7 @@ public interface LargeFramebuffer {
|
||||||
final int height = Math.min(height(), top + Framebuffer.HEIGHT) - top;
|
final int height = Math.min(height(), top + Framebuffer.HEIGHT) - top;
|
||||||
for (int y = top; y < height; y++) {
|
for (int y = top; y < height; y++) {
|
||||||
for (int x = left; x < width; x++) {
|
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;
|
colors[Framebuffer.index(x - left, y - top)] = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user