mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-06 00:08:10 +07:00
Fixed editor crashing with multithreading on
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
#Autogenerated file. Do not modify.
|
#Autogenerated file. Do not modify.
|
||||||
#Fri Feb 09 22:22:25 EST 2018
|
#Sat Feb 10 11:08:25 EST 2018
|
||||||
version=beta
|
version=beta
|
||||||
androidBuildCode=143
|
androidBuildCode=143
|
||||||
name=Mindustry
|
name=Mindustry
|
||||||
|
@ -364,6 +364,10 @@ public class Control extends Module{
|
|||||||
tutorial.update();
|
tutorial.update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
if(!state.is(State.paused) || Net.active()){
|
||||||
|
Timers.update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -110,12 +110,12 @@ public class Logic extends Module {
|
|||||||
@Override
|
@Override
|
||||||
public void update(){
|
public void update(){
|
||||||
|
|
||||||
if(!state.is(State.paused) || Net.active()){
|
|
||||||
Timers.update();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!state.is(State.menu)){
|
if(!state.is(State.menu)){
|
||||||
|
|
||||||
|
if(!state.is(State.paused) || Net.active()){
|
||||||
|
Timers.update();
|
||||||
|
}
|
||||||
|
|
||||||
if(!Net.client())
|
if(!Net.client())
|
||||||
world.pathfinder().update();
|
world.pathfinder().update();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user