forked from SteamWar/SteamWar
Remove old simulator loading
This commit is contained in:
@@ -69,16 +69,6 @@ public class WorldData {
|
||||
// Ignored
|
||||
}
|
||||
}
|
||||
|
||||
// Conversion from old simulator saving to new one
|
||||
if (worldData.containsKey("simulators")) {
|
||||
YAPIONObject yapionObject = worldData.getObject("simulators");
|
||||
worldData.remove("simulators");
|
||||
yapionObject.forEach((s, yapionAnyType) -> {
|
||||
SteamwarUser steamwarUser = SteamwarUser.get(Integer.parseInt(s));
|
||||
SimulatorData.saveSimulator(steamwarUser, new YAPIONObject().add("", yapionAnyType));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public void write() {
|
||||
|
||||
Reference in New Issue
Block a user