SteamWar/BauSystem2.0
Archiviert
12
0

Fix SimulatorSaver
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2024-01-14 11:52:20 +01:00
Ursprung 21aa22d75f
Commit ada8fefd62

Datei anzeigen

@ -32,6 +32,10 @@ import java.io.IOException;
public class SimulatorSaver { public class SimulatorSaver {
public void saveSimulator(File directory, Simulator simulator) { public void saveSimulator(File directory, Simulator simulator) {
if (!directory.exists()) {
directory.mkdirs();
}
YAPIONObject simulatorObject = new YAPIONObject(); YAPIONObject simulatorObject = new YAPIONObject();
simulatorObject.add("material", simulator.getMaterial().name()); simulatorObject.add("material", simulator.getMaterial().name());
simulatorObject.add("autoTrace", simulator.isAutoTrace()); simulatorObject.add("autoTrace", simulator.isAutoTrace());