Fixed playtime not resetting on save exit

This commit is contained in:
Anuken 2018-08-07 19:46:05 -04:00
parent cb16c75e11
commit ba62e0eefc

View file

@ -33,7 +33,11 @@ public class Saves{
public Saves(){
Events.on(StateChangeEvent.class, (prev, state) -> {
if(state == State.menu){
threads.run(() -> current = null);
threads.run(() -> {
totalPlaytime = 0;
lastTimestamp = 0;
current = null;
});
}
});
}