Don't warn when 'top' is missing (old maps don't have it, and that's ok)

This commit is contained in:
Nathan Watson
2020-12-27 19:20:36 -08:00
parent 7f839cd2f9
commit 605748b35b

View File

@@ -373,7 +373,7 @@ public final class TMXMapTranslator {
if (layerName.length() == 0) return null;
TMXLayer result = layersPerLayerName.get(layerName.toLowerCase());
if (AndorsTrailApplication.DEVELOPMENT_VALIDATEDATA) {
if (result == null) {
if (result == null && !"top".equals(layerName)) {
L.log("WARNING: Cannot find maplayer \"" + layerName + "\" requested by map \"" + mapName + "\".");
}
}