mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 23:51:36 +01:00
fix a bug with map api
This commit is contained in:
parent
ba63fe5b63
commit
6ed7581e03
@ -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