mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-07-04 00:38:41 +00:00
Srat Refactoring To Santoku
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.dark98.santoku.boot;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import com.dark98.santoku.Santoku;
|
||||
|
||||
public class CheckUpdateJsonTask extends BootTask {
|
||||
public CheckUpdateJsonTask() {
|
||||
super(() -> {
|
||||
try {
|
||||
Santoku.INSTANCE.getAssets().open("update.json").close();
|
||||
Santoku.hasUpdateInfo = true;
|
||||
} catch (IOException e) {
|
||||
Santoku.hasUpdateInfo = false;
|
||||
}
|
||||
});
|
||||
onWorker();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user