proper aligned map
parent
254425f39d
commit
b7519242f2
|
@ -63,7 +63,10 @@ public class MapBlockRenderer {
|
|||
logger.debug("Found node '{}' @ {}/{}/{} in blocky: {}", name, x, y, z, block.getPosy());
|
||||
|
||||
graphics.setColor(new java.awt.Color(color.r, color.g, color.b));
|
||||
graphics.drawLine(x, z, x, z);
|
||||
int graphicX = x;
|
||||
int graphicY = 15 - z;
|
||||
|
||||
graphics.drawLine(graphicX, graphicY, graphicX, graphicY);
|
||||
|
||||
xz_coords[x][z] = true;
|
||||
foundBlocks++;
|
||||
|
|
|
@ -122,7 +122,7 @@ public class FetchMap {
|
|||
continue;
|
||||
|
||||
int graphics_offset_x = (blockx - minx) * 16;
|
||||
int graphics_offset_z = (blockz - minz) * 16;
|
||||
int graphics_offset_z = (z_extent * 16) - ((blockz - minz) * 16);
|
||||
|
||||
Graphics blockGraphics = graphics.create(graphics_offset_x, graphics_offset_z, 16, 16);
|
||||
|
||||
|
|
Loading…
Reference in New Issue