diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java index 873af36e..fcceecc6 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java @@ -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));