mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Minor BE update fix
This commit is contained in:
parent
85fd027150
commit
7ddbc40720
@ -4466,7 +4466,6 @@ public class Blocks{
|
||||
trailEffect = Fx.disperseTrail;
|
||||
trailInterval = 3f;
|
||||
|
||||
//TODO
|
||||
intervalBullet = new LightningBulletType(){{
|
||||
damage = 30;
|
||||
collidesAir = false;
|
||||
|
@ -60,7 +60,10 @@ public class BeControl{
|
||||
/** asynchronously checks for updates. */
|
||||
public void checkUpdate(Boolc done){
|
||||
Http.get("https://api.github.com/repos/Anuken/MindustryBuilds/releases/latest")
|
||||
.error(e -> {}) //ignore errors
|
||||
.error(e -> {
|
||||
//don't log the error, as it would clog output if there is no internet. make sure it's handled to prevent infinite loading.
|
||||
done.get(false);
|
||||
})
|
||||
.submit(res -> {
|
||||
Jval val = Jval.read(res.getResultAsString());
|
||||
int newBuild = Strings.parseInt(val.getString("tag_name", "0"));
|
||||
|
Loading…
Reference in New Issue
Block a user