Fix issue with game speed patch
This commit is contained in:
@@ -47,7 +47,7 @@ namespace TavernDave {
|
|||||||
[HarmonyPatch(typeof(UiController), "ChangeGameSpeed")]
|
[HarmonyPatch(typeof(UiController), "ChangeGameSpeed")]
|
||||||
public static void PrefixSpeed(ref int gameSpeed) {
|
public static void PrefixSpeed(ref int gameSpeed) {
|
||||||
Console.WriteLine($"Game speed is {gameSpeed}");
|
Console.WriteLine($"Game speed is {gameSpeed}");
|
||||||
if (gameSpeed > 0) {
|
if (gameSpeed > 1) {
|
||||||
gameSpeed = Main.fastSpeed.Value;
|
gameSpeed = Main.fastSpeed.Value;
|
||||||
Console.WriteLine($"Game speed modified to {gameSpeed}");
|
Console.WriteLine($"Game speed modified to {gameSpeed}");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user