// we access ChunkMap via Chunky but here we also need to lock Chunky
synchronized (chunky) {
synchronized (this) {
ChunkView mapView = chunky.getMapView();
WorldRenderer renderer = chunky.getWorldRenderer();
World world = chunky.getWorld();
ChunkSelectionTracker selection = chunky.getChunkSelection();
renderer.render(world, mapBuffer, Chunk.biomeRenderer, selection);
mapBuffer.renderBuffered(g);
renderer.renderPlayer(world, g, view, true);
renderer.renderSpawn(world, g, view, true);
// draw view rectangle
g.setColor(Color.orange);
g.drawRect(
(int) FastMath.round(mapView.x0 - view.x0),