diff --git a/MapsCollection.java b/MapsCollection.java index 553c9ce..4c1b5f9 100644 --- a/MapsCollection.java +++ b/MapsCollection.java @@ -146,13 +146,12 @@ public class MapsCollection { case "DumpMap" -> new MapWithSetTracktorGeneric<>(_pictureWidth, _pictureHeight, new DumpMap()); default -> null; }; + _mapsStorage.put(mapName, map); } while ((currentLine = reader.readLine()) != null) { map._setTracktor.insert(DrawningObjectExcavator.create(currentLine)); } - - _mapsStorage.put(mapName, map); } return true;