SteamWar/BauSystem2.0
Archiviert
12
0

Merge remote-tracking branch 'origin/master'
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-06-24 20:19:55 +02:00
Commit 1e214d49d5

Datei anzeigen

@ -139,8 +139,12 @@ public class SimulatorStorage implements Enable, Disable {
} }
if (file.getName().endsWith(".yapion")) { if (file.getName().endsWith(".yapion")) {
String name = file.getName().substring(0, file.getName().length() - 7); String name = file.getName().substring(0, file.getName().length() - 7);
SteamwarUser steamwarUser = SteamwarUser.get(Integer.parseInt(name)); try {
convert(file, steamwarUser); SteamwarUser steamwarUser = SteamwarUser.get(Integer.parseInt(name));
convert(file, steamwarUser);
} catch (Exception e) {
file.delete();
}
} else { } else {
String name = file.getName().substring(0, file.getName().length() - ".simulator".length()); String name = file.getName().substring(0, file.getName().length() - ".simulator".length());
tntSimulators.put(name, new TNTSimulator(yapionObject)); tntSimulators.put(name, new TNTSimulator(yapionObject));