mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Use the latest subtile timestamp
for zoom out processing, instead of the render start time.
This commit is contained in:
parent
ed0e5534fd
commit
e3d5990dbe
@ -128,7 +128,7 @@ public abstract class DynmapWorld {
|
||||
private static final int[] stepseq = { 3, 1, 2, 0 };
|
||||
|
||||
private void processZoomFile(MapTypeState mts, MapStorageTile tile, boolean firstVariant) {
|
||||
final long startTimestamp = System.currentTimeMillis();
|
||||
long mostRecentTimestamp = 0;
|
||||
int step = 1 << tile.zoom;
|
||||
MapStorageTile ztile = tile.getZoomOutTile();
|
||||
int width = 128, height = 128;
|
||||
@ -155,6 +155,7 @@ public abstract class DynmapWorld {
|
||||
}
|
||||
try {
|
||||
MapStorageTile.TileRead tr = tile1.read();
|
||||
mostRecentTimestamp = Math.max(mostRecentTimestamp, tr.lastModified);
|
||||
if (tr != null) {
|
||||
BufferedImage im = null;
|
||||
try {
|
||||
@ -239,7 +240,7 @@ public abstract class DynmapWorld {
|
||||
}
|
||||
}
|
||||
else /* if (!ztile.matchesHashCode(crc)) */ {
|
||||
ztile.write(crc, zIm, startTimestamp);
|
||||
ztile.write(crc, zIm, mostRecentTimestamp);
|
||||
MapManager.mapman.pushUpdate(this, new Client.Tile(ztile.getURI()));
|
||||
enqueueZoomOutUpdate(ztile);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user