Merge branch 'LabWork06' into LabWork07

This commit is contained in:
Sosees04ka 2022-12-15 23:18:37 +04:00
commit 2498e239c7

View File

@ -136,11 +136,11 @@ public class MapsCollection {
case "LongMap" -> new MapWithSetGasolineTankerGeneric<>(_pictureWidth, _pictureHeight, new LongMap()); case "LongMap" -> new MapWithSetGasolineTankerGeneric<>(_pictureWidth, _pictureHeight, new LongMap());
default -> null; default -> null;
}; };
_mapStorages.put(mapName, map);
} }
while ((currentLine = reader.readLine()) != null) { while ((currentLine = reader.readLine()) != null) {
map._setGasolineTanker.Insert((DrawingObjectGasolineTanker) DrawingObjectGasolineTanker.Create(currentLine)); map._setGasolineTanker.Insert((DrawingObjectGasolineTanker) DrawingObjectGasolineTanker.Create(currentLine));
} }
_mapStorages.put(mapName, map);
} }
} }
} }