Изменения

This commit is contained in:
AnnZhimol 2022-12-14 09:31:16 +04:00
parent ff9af7035a
commit d8f4d43245

View File

@ -150,11 +150,11 @@ public class MapsCollection {
case "SecondMap" -> new MapWithSetWarshipsGeneric<>(_pictureWidth, _pictureHeight, new SecondMap()); case "SecondMap" -> new MapWithSetWarshipsGeneric<>(_pictureWidth, _pictureHeight, new SecondMap());
default -> null; default -> null;
}; };
_mapStorages.put(mapName, map);
} }
while ((currentLine = reader.readLine()) != null) { while ((currentLine = reader.readLine()) != null) {
map._setWarship.Insert((DrawingObjectWarship) DrawingObjectWarship.Create(currentLine)); map._setWarship.Insert((DrawingObjectWarship) DrawingObjectWarship.Create(currentLine));
} }
_mapStorages.put(mapName, map);
} }
return true; return true;
} }