Skip to content

Commit 05a4377

Browse files
committed
fix
1 parent 13f180b commit 05a4377

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

api/src/main/java/com/github/zly2006/xbackup/api/XBackupApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ static XBackupApi getInstance() {
2121
static XBackupApi setInstance(XBackupApi instance) {
2222
if (Instance.instance != null && instance != null) {
2323
Instance.instance.close();
24-
// throw new IllegalStateException("Instance already set");
2524
}
2625
Instance.instance = instance;
2726
return instance;

src/main/kotlin/com/github/zly2006/xbackup/XBackup.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ object XBackup : ModInitializer {
4242
lateinit var config: Config
4343
private val configPath = FabricLoader.getInstance().configDir.resolve("x-backup.config.json")
4444
val log = LoggerFactory.getLogger("XBackup")!!
45-
const val MOD_VERSION = /*$ mod_version*/ "0.3.11"
46-
const val GIT_COMMIT = /*$ git_commit*/ "f1f683f"
47-
const val COMMIT_DATE = /*$ commit_date*/ "2025-04-16T14:12:41+08:00"
45+
const val MOD_VERSION = /*$ mod_version*/ "0.3.12"
46+
const val GIT_COMMIT = /*$ git_commit*/ "7736a28"
47+
const val COMMIT_DATE = /*$ commit_date*/ "2025-06-15T23:39:54+08:00"
4848
var _service: BackupDatabaseService? = null
4949
val service get() = _service!!
5050
var server: MinecraftServer? = null

src/main/kotlin/com/github/zly2006/xbackup/gui/RestoreInfoScreen.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class RestoreInfoScreen(private val backup: IBackup, private val worldRoot: Path
2727
}
2828

2929
override fun render(context: DrawContext, mouseX: Int, mouseY: Int, delta: Float) {
30-
//? if >=1.20.4 {
30+
//? if >= 1.20.4 {
3131
renderBackground(context, mouseX, mouseY, delta)
3232
//?} else {
33-
/*renderBackground(context)*/
33+
/*renderBackground(context)
3434
*///?}
3535
super.render(context, mouseX, mouseY, delta)
3636
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 20, 0xFFFFFF)
@@ -70,12 +70,12 @@ class RestoreInfoScreen(private val backup: IBackup, private val worldRoot: Path
7070
client.setScreen(null)
7171
runCatching {
7272
val loader = client.createIntegratedServerLoader()
73-
//? if >=1.20.4 {
73+
//? if >= 1.20.4 {
7474
loader.start(worldRoot.normalize().name) {
7575
this.close()
7676
}
7777
//?} else {
78-
/*loader.start(this, worldRoot.normalize().name)*/
78+
/*loader.start(this, worldRoot.normalize().name)
7979
*///?}
8080
}.onFailure { XBackup.log.error("Failed to reopen world", it) }
8181
}

0 commit comments

Comments
 (0)