Fix SimulatorStorage.enable for old simulators
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed
Dieser Commit ist enthalten in:
Ursprung
4f31b38332
Commit
0b57e5f2d9
@ -139,8 +139,16 @@ public class SimulatorStorage implements Enable, Disable {
|
||||
}
|
||||
if (file.getName().endsWith(".yapion")) {
|
||||
String name = file.getName().substring(0, file.getName().length() - 7);
|
||||
SteamwarUser steamwarUser = SteamwarUser.get(Integer.parseInt(name));
|
||||
convert(file, steamwarUser);
|
||||
try {
|
||||
SteamwarUser steamwarUser = SteamwarUser.get(Integer.parseInt(name));
|
||||
convert(file, steamwarUser);
|
||||
} catch (Exception e) {
|
||||
try {
|
||||
file.delete();
|
||||
} catch (IOException ex) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
} else {
|
||||
String name = file.getName().substring(0, file.getName().length() - ".simulator".length());
|
||||
tntSimulators.put(name, new TNTSimulator(yapionObject));
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren