mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-27 01:01:09 -07:00
Fixed playtime not resetting on save exit
This commit is contained in:
parent
cb16c75e11
commit
ba62e0eefc
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue