Make MapNormalizer editor plugin script save only map files that needed normalization.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11682 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
b58b9e7fa4
commit
5505de47a2
|
@ -31,7 +31,9 @@ void normalizeMap(File mapFile, String mapPath) {
|
|||
ShrinkMapSizeUtils.shrinkMap(mapModel, shrinkFlags);
|
||||
}
|
||||
|
||||
map.save();
|
||||
if (map.getMapModel().isModified()) {
|
||||
map.save();
|
||||
}
|
||||
} finally {
|
||||
mapManager.release(map);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue