mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 23:11:12 -08:00
Fixed BE server not updating
This commit is contained in:
parent
9b22777dfb
commit
b2ed066faa
3 changed files with 5 additions and 5 deletions
|
|
@ -39,7 +39,7 @@ public class BeControl{
|
|||
public BeControl(){
|
||||
if(active()){
|
||||
Timer.schedule(() -> {
|
||||
if(Vars.clientLoaded && checkUpdates && !mobile){
|
||||
if((Vars.clientLoaded || headless) && checkUpdates && !mobile){
|
||||
checkUpdate(t -> {});
|
||||
}
|
||||
}, updateInterval, updateInterval);
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ public class JoinDialog extends BaseDialog{
|
|||
|
||||
refreshLocal();
|
||||
refreshRemote();
|
||||
refreshGlobal();
|
||||
refreshCommunity();
|
||||
}
|
||||
|
||||
void setupRemote(){
|
||||
|
|
@ -331,7 +331,7 @@ public class JoinDialog extends BaseDialog{
|
|||
if(eye){
|
||||
name.button(Icon.eyeSmall, Styles.emptyi, () -> {
|
||||
showHidden = !showHidden;
|
||||
refreshGlobal();
|
||||
refreshCommunity();
|
||||
}).update(i -> i.getStyle().imageUp = (showHidden ? Icon.eyeSmall : Icon.eyeOffSmall))
|
||||
.size(40f).right().padRight(3).tooltip("@servers.showhidden");
|
||||
}
|
||||
|
|
@ -357,7 +357,7 @@ public class JoinDialog extends BaseDialog{
|
|||
net.discoverServers(this::addLocalHost, this::finishLocalHosts);
|
||||
}
|
||||
|
||||
void refreshGlobal(){
|
||||
void refreshCommunity(){
|
||||
int cur = refreshes;
|
||||
|
||||
global.clear();
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ android.useAndroidX=true
|
|||
#used for slow jitpack builds; TODO see if this actually works
|
||||
http.socketTimeout=80000
|
||||
http.connectionTimeout=80000
|
||||
archash=6534b0e34bfcb24d02d99cb9534d087ea76b5601
|
||||
archash=e1165d2a9ec04dc5220d41bbc104a6ade3f31232
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue