proper aligned map

master
Thomas Rudin 2018-04-11 13:34:03 +00:00
parent 254425f39d
commit b7519242f2
2 changed files with 5 additions and 2 deletions

View File

@ -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++;

View File

@ -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);