Merge pull request #398 from bluegreensea/main

Postpone settings load & Update traditional chinese translations
This commit is contained in:
RK_01 2024-04-23 18:23:49 +02:00 committed by GitHub
commit 0b84e59948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22 additions and 15 deletions

View File

@ -64,13 +64,16 @@ public class ViaFabricPlus {
directory.mkdir();
ClassLoaderPriorityUtil.loadOverridingJars(directory); // Load overriding jars first so other code can access the new classes
settingsManager = new SettingsManager();
saveManager = new SaveManager(settingsManager);
ClientsideFixes.init(); // Init clientside related fixes
loadingFuture = ProtocolTranslator.init(directory); // Init ViaVersion protocol translator platform
PostGameLoadCallback.EVENT.register(() -> loadingFuture.join()); // Block game loading until ViaVersion has loaded
settingsManager = new SettingsManager();
saveManager = new SaveManager(settingsManager);
PostGameLoadCallback.EVENT.register(() -> {
loadingFuture.join();
saveManager.init();
}); // Block game loading until ViaVersion has loaded
}
public static ViaFabricPlus global() {

View File

@ -43,7 +43,9 @@ public class SaveManager {
settingsSave = new SettingsSave(settingsManager),
accountsSave = new AccountsSave()
);
}
public void init() {
// Load save files
for (AbstractSave save : saves) {
save.init();

View File

@ -44,10 +44,11 @@
"general_settings.viafabricplus.ignore_packet_translation_errors": "忽略封包轉換錯誤",
"general_settings.viafabricplus.load_skins_and_skulls_in_legacy_versions": "在舊版中載入外觀和頭顱",
"general_settings.viafabricplus.emulate_inventory_actions_in_alpha_versions": "模擬 Alpha 版本物品欄動作",
"general_settings.viafabricplus.direct_connect_screen_button_orientation": "直接連缐 熒幕的按鈕方位",
"general_settings.viafabricplus.direct_connect_screen_button_orientation": "直接連線畫面按鈕方向",
"bedrock_settings.viafabricplus.confirm_transfer_server_prompt": "開啟提示視窗以確認轉換到其他伺服器",
"bedrock_settings.viafabricplus.click_to_set_bedrock_account": "點擊以設定 Bedrock 版帳號",
"bedrock_settings.viafabricplus.replace_default_port": "在伺服器清單中取代預設連線埠",
"debug_settings.viafabricplus.queue_config_packets": "佇列設定封包",
"debug_settings.viafabricplus.disable_sequencing": "停用排序",
@ -57,12 +58,12 @@
"debug_settings.viafabricplus.send_open_inventory_packet": "發送開啟物品欄封包",
"debug_settings.viafabricplus.remove_cooldowns": "移除冷卻時間",
"debug_settings.viafabricplus.send_idle_packet": "發送閒置封包",
"debug_settings.viafabricplus.replace_attribute_modifiers": "替換屬性修飾符",
"debug_settings.viafabricplus.replace_sneaking": "替換潛行",
"debug_settings.viafabricplus.replace_attribute_modifiers": "取代屬性修飾符",
"debug_settings.viafabricplus.replace_sneaking": "取代潛行",
"debug_settings.viafabricplus.long_sneaking": "長時間潛行",
"debug_settings.viafabricplus.legacy_mining_speeds": "舊版挖礦速度",
"debug_settings.viafabricplus.prevent_entity_cramming": "阻止實體擠壓",
"debug_settings.viafabricplus.always_tick_client_player": "始終執行客戶端玩家刻",
"debug_settings.viafabricplus.always_tick_client_player": "一律執行用戶端玩家刻",
"authentication_settings.viafabricplus.use_beta_craft_authentication": "使用 BetaCraft 驗證",
"authentication_settings.viafabricplus.verify_session_for_online_mode": "允許 ViaLegacy 調用 joinServer() 來驗證 session",
@ -73,16 +74,17 @@
"visual_settings.viafabricplus.disable_secure_chat_warning": "停用受保護的聊天內容警告",
"visual_settings.viafabricplus.hide_signature_indicator": "隱藏簽章指示器",
"visual_settings.viafabricplus.remove_newer_features_from_jigsaw_screen": "從拼圖方塊畫面中移除較新的功能",
"visual_settings.viafabricplus.replace_petrified_oak_slab": "替換石化橡木半磚",
"visual_settings.viafabricplus.replace_petrified_oak_slab": "取代石化橡木半磚",
"visual_settings.viafabricplus.emulate_armor_hud": "模擬盔甲 HUD",
"visual_settings.viafabricplus.remove_newer_features_from_command_block_screen": "從指令方塊畫面中移除較新的功能",
"visual_settings.viafabricplus.replace_hurt_sound_with_oof_sound": "將受傷聲音替換為 OOF 音效",
"visual_settings.viafabricplus.replace_hurt_sound_with_oof_sound": "將受傷聲音取代為 OOF 音效",
"visual_settings.viafabricplus.remove_newer_hud_elements": "移除較新的 HUD 元素",
"visual_settings.viafabricplus.replace_creative_inventory_with_classic_inventory": "替換創造模式物品欄",
"visual_settings.viafabricplus.replace_creative_inventory_with_classic_inventory": "取代創造模式物品欄",
"visual_settings.viafabricplus.old_walking_animation": "舊的行走動畫",
"visual_settings.viafabricplus.change_font_renderer_behaviour": "變更字型渲染器行為",
"visual_settings.viafabricplus.enable_sword_blocking": "啟用 1.8 劍阻擋動畫",
"visual_settings.viafabricplus.enable_block_hit_animation": "啟用 1.7 阻擋攻擊動畫",
"visual_settings.viafabricplus.disable_server_pinging": "禁用伺服器 pinging",
"bedrock.viafabricplus.login": "你的瀏覽器應該已經開啟。\n請輸入以下代碼%s\n關閉此畫面將取消流程",
"bedrock.viafabricplus.confirm_transfer_server_prompt": "你確定要轉移到以下伺服器?\n%s\n\n這將中斷目前伺服器的連線並連線到新的伺服器。",
@ -99,9 +101,9 @@
"classic4j_library.viafabricplus.error.verification": "使用者尚未驗證電子郵件地址。",
"classic4j_library.viafabricplus.error.logincode": "要求多重要素驗證。請檢查你的電子郵件。",
"report.viafabricplus.button": "問題",
"report.viafabricplus.bug_report": "在 GitHub 上 Bug",
"report.viafabricplus.button": "報問題",
"report.viafabricplus.bug_report": "在 GitHub 上報 Bug",
"report.viafabricplus.feature_request": "在 Github 上請求新功能",
"report.viafabricplus.create_via_dump": "建一個 ViaVersion Dump用於報問題時收集訊",
"report.viafabricplus.open_logs": "打開游戲日志目錄"
"report.viafabricplus.create_via_dump": "一個 ViaVersion Dump用於報問題時收集訊",
"report.viafabricplus.open_logs": "開啟遊戲日誌目錄"
}