Minor BE update fix

This commit is contained in:
Anuken 2022-07-05 18:30:43 -04:00
parent 85fd027150
commit 7ddbc40720
2 changed files with 4 additions and 2 deletions

View File

@ -4466,7 +4466,6 @@ public class Blocks{
trailEffect = Fx.disperseTrail;
trailInterval = 3f;
//TODO
intervalBullet = new LightningBulletType(){{
damage = 30;
collidesAir = false;

View File

@ -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"));