mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-03-14 07:29:20 +01:00
Move timestamp logic into a safe place
This commit is contained in:
parent
e3d5990dbe
commit
2a7e69e281
@ -155,11 +155,12 @@ public abstract class DynmapWorld {
|
||||
}
|
||||
try {
|
||||
MapStorageTile.TileRead tr = tile1.read();
|
||||
mostRecentTimestamp = Math.max(mostRecentTimestamp, tr.lastModified);
|
||||
if (tr != null) {
|
||||
BufferedImage im = null;
|
||||
try {
|
||||
im = ImageIOManager.imageIODecode(tr);
|
||||
// Only consider the timestamp when the tile exists and isn't broken
|
||||
mostRecentTimestamp = Math.max(mostRecentTimestamp, tr.lastModified);
|
||||
} catch (IOException iox) {
|
||||
// Broken file - zap it
|
||||
tile1.delete();
|
||||
|
Loading…
Reference in New Issue
Block a user