Minor BE update fix
This commit is contained in:
@@ -4466,7 +4466,6 @@ public class Blocks{
|
|||||||
trailEffect = Fx.disperseTrail;
|
trailEffect = Fx.disperseTrail;
|
||||||
trailInterval = 3f;
|
trailInterval = 3f;
|
||||||
|
|
||||||
//TODO
|
|
||||||
intervalBullet = new LightningBulletType(){{
|
intervalBullet = new LightningBulletType(){{
|
||||||
damage = 30;
|
damage = 30;
|
||||||
collidesAir = false;
|
collidesAir = false;
|
||||||
|
|||||||
@@ -60,7 +60,10 @@ public class BeControl{
|
|||||||
/** asynchronously checks for updates. */
|
/** asynchronously checks for updates. */
|
||||||
public void checkUpdate(Boolc done){
|
public void checkUpdate(Boolc done){
|
||||||
Http.get("https://api.github.com/repos/Anuken/MindustryBuilds/releases/latest")
|
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 -> {
|
.submit(res -> {
|
||||||
Jval val = Jval.read(res.getResultAsString());
|
Jval val = Jval.read(res.getResultAsString());
|
||||||
int newBuild = Strings.parseInt(val.getString("tag_name", "0"));
|
int newBuild = Strings.parseInt(val.getString("tag_name", "0"));
|
||||||
|
|||||||
Reference in New Issue
Block a user