mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-11 18:02:08 +01:00
Fixed bug in LargeFramebuffer#preparePacket(int,int,int) (#2213)
This commit is contained in:
parent
2b661fd48f
commit
e513efb393
@ -33,8 +33,8 @@ public interface LargeFramebuffer {
|
||||
byte[] colors = new byte[Framebuffer.WIDTH * Framebuffer.WIDTH];
|
||||
final int width = Math.min(width(), left + Framebuffer.WIDTH) - left;
|
||||
final int height = Math.min(height(), top + Framebuffer.HEIGHT) - top;
|
||||
for (int y = top; y < height; y++) {
|
||||
for (int x = left; x < width; x++) {
|
||||
for (int y = top; y < top+height; y++) {
|
||||
for (int x = left; x < left+width; x++) {
|
||||
final byte color = getMapColor(x, y);
|
||||
colors[Framebuffer.index(x - left, y - top)] = color;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user