Fixed multithreading affecting wave time

This commit is contained in:
Anuken
2018-05-09 16:58:53 -07:00
parent 61e9611bab
commit 26025a3018
3 changed files with 4 additions and 5 deletions

View File

@@ -131,14 +131,14 @@ public class Logic extends Module {
if(!state.mode.disableWaveTimer){
if(state.enemies <= 0){
if(!world.getMap().name.equals("tutorial")) state.wavetime -= delta();
if(!world.getMap().name.equals("tutorial")) state.wavetime -= Timers.delta();
if(state.lastUpdated < state.wave + 1 && state.wavetime < aheadPathfinding){ //start updating beforehand
world.pathfinder().resetPaths();
state.lastUpdated = state.wave + 1;
}
}else if(!world.getMap().name.equals("tutorial")){
state.extrawavetime -= delta();
state.extrawavetime -= Timers.delta();
}
}