From 72d55e306533eda3dbb30a34fb3723bf8bcfe2c4 Mon Sep 17 00:00:00 2001 From: Gurge44 Date: Sun, 26 Jan 2025 13:50:37 +0100 Subject: [PATCH] fix --- GameMode/MoveAndStop.cs | 2 +- Modules/Translator.cs | 7 +++++-- Resources/Lang/en_US.json | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/GameMode/MoveAndStop.cs b/GameMode/MoveAndStop.cs index 55988faf7..b6f736019 100644 --- a/GameMode/MoveAndStop.cs +++ b/GameMode/MoveAndStop.cs @@ -416,7 +416,7 @@ internal static class MoveAndStop PlayerControl pc = __instance; long now = Utils.TimeStamp; - if (TimeSinceStart > 25 && !IsEventActive && (now - Event.StartTimeStamp - Event.Duration) >= EventFrequency.GetInt()) + if (TimeSinceStart > 35 && !IsEventActive && (now - Event.StartTimeStamp - Event.Duration) >= EventFrequency.GetInt()) { var pool = EventChances.SelectMany(x => Enumerable.Repeat(x.Key, x.Value.GetInt() / 5)).ToList(); if (Event.Duration == 0) pool.RemoveAll(x => x == Events.VentAccess); diff --git a/Modules/Translator.cs b/Modules/Translator.cs index 381a6fca7..d62a6cb3a 100644 --- a/Modules/Translator.cs +++ b/Modules/Translator.cs @@ -126,8 +126,11 @@ public static class Translator if (Main.ForceOwnLanguage.Value) langId = GetUserTrueLang(); - int modLanguageId = Options.ModLanguage.GetValue(); - if (modLanguageId != 0) langId = (SupportedLangs)(modLanguageId + 100 - 1); + if (Options.IsLoaded) + { + int modLanguageId = Options.ModLanguage.GetValue(); + if (modLanguageId != 0) langId = (SupportedLangs)(modLanguageId + 100 - 1); + } string str = GetString(s, langId); diff --git a/Resources/Lang/en_US.json b/Resources/Lang/en_US.json index 639cc1979..a2ca765d3 100644 --- a/Resources/Lang/en_US.json +++ b/Resources/Lang/en_US.json @@ -5687,6 +5687,7 @@ "UpReplacedMessage": "/up was replaced by /setrole which allows you to set anyone's role for any game by typing '/setrole (ID) (ROLE)'. You can view ID's with /id.\nTo set your own role like with /up, you need to do '/setrole 0 (ROLE)'.", "PingText": "Ping", "SettingsForRoleText": "Settings for", + "ModLanguage": "Mod Language", "UseGameLanguage": "Use Game Language", "Hungarian": "Hungarian", "Polish": "Polish",