From 05264531baa51e60ab857b1636f2631a241b3c80 Mon Sep 17 00:00:00 2001 From: notlin4 <121224522+notlin4@users.noreply.github.com> Date: Sun, 3 Nov 2024 00:25:52 +0800 Subject: [PATCH 1/2] Fix property name --- .../java/com/minenash/seamless_loading_screen/DisplayMode.java | 2 +- .../mixin/custom_screenshots/AddServerScreenMixin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/minenash/seamless_loading_screen/DisplayMode.java b/common/src/main/java/com/minenash/seamless_loading_screen/DisplayMode.java index 396dba4..91fc11b 100644 --- a/common/src/main/java/com/minenash/seamless_loading_screen/DisplayMode.java +++ b/common/src/main/java/com/minenash/seamless_loading_screen/DisplayMode.java @@ -1,7 +1,7 @@ package com.minenash.seamless_loading_screen; public enum DisplayMode { - ENABLED, FREEZE, DISABLED; + enabled, freeze, disable; public DisplayMode next() { return DisplayMode.values()[(ordinal() + 1) % 3]; diff --git a/common/src/main/java/com/minenash/seamless_loading_screen/mixin/custom_screenshots/AddServerScreenMixin.java b/common/src/main/java/com/minenash/seamless_loading_screen/mixin/custom_screenshots/AddServerScreenMixin.java index e9dc61a..a90dee2 100644 --- a/common/src/main/java/com/minenash/seamless_loading_screen/mixin/custom_screenshots/AddServerScreenMixin.java +++ b/common/src/main/java/com/minenash/seamless_loading_screen/mixin/custom_screenshots/AddServerScreenMixin.java @@ -60,7 +60,7 @@ private void buttonAllowCustomScreenshot(CallbackInfo info) { @Unique private Text getText() { - return (Text.translatable("seamless_loading_screen.server.displayMode")) + return (Text.translatable("seamless_loading_screen.config.serverDisplayMode")) .append(": ") .append(Text.translatable( "seamless_loading_screen.config.displayMode." From 2a2ecade4237c73c1bc5c7bdba686476a019cd2b Mon Sep 17 00:00:00 2001 From: notlin4 <121224522+notlin4@users.noreply.github.com> Date: Sun, 3 Nov 2024 00:26:39 +0800 Subject: [PATCH 2/2] Fix duplicate property name in zh_cn.json --- .../resources/assets/seamless_loading_screen/lang/zh_cn.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/src/main/resources/assets/seamless_loading_screen/lang/zh_cn.json b/common/src/main/resources/assets/seamless_loading_screen/lang/zh_cn.json index d8be6b0..26897b4 100644 --- a/common/src/main/resources/assets/seamless_loading_screen/lang/zh_cn.json +++ b/common/src/main/resources/assets/seamless_loading_screen/lang/zh_cn.json @@ -9,8 +9,6 @@ "seamless_loading_screen.midnightconfig.boolean.true": "是", "seamless_loading_screen.midnightconfig.boolean.false": "否", "seamless_loading_screen.midnightconfig.archiveScreenshots": "保存截屏", - "seamless_loading_screen.midnightconfig.updateWorldIcon": "Update World Icon", - "seamless_loading_screen.server.allowCustomScreenshot": "Use Custom Screenshot", "seamless_loading_screen.midnightconfig.resolution": "截屏分辨率", "seamless_loading_screen.midnightconfig.resolution.tooltip": "原生 - Optifine TAA 兼容性, 游戏分辨率\n正常 - 最高支持 21:9 超宽屏\n4K - 针对 4K 分辨率的显示器\n8K - 针对 8K 分辨率的显示器", "seamless_loading_screen.midnightconfig.enum.ScreenshotResolution.Native": "原生",