diff --git a/Patches/MedalsDisplayPatches.cs b/Patches/MedalsDisplayPatches.cs index 75269e7..4e6acd6 100644 --- a/Patches/MedalsDisplayPatches.cs +++ b/Patches/MedalsDisplayPatches.cs @@ -18,20 +18,23 @@ namespace DiamondTimeViewer.Patches float diamond = LevelSelect.instance.level.DiamondTime; bool showDiamondTime = false; - switch (Config.Mode) + if (diamond > 0.0f) { - case DisplayMode.Always: - showDiamondTime = true; - break; - case DisplayMode.Diamond: - showDiamondTime = LevelSelect.instance.bestScore > 0f && LevelSelect.instance.bestScore <= diamond; - break; - case DisplayMode.Gold: - showDiamondTime = LevelSelect.instance.bestScore > 0f && LevelSelect.instance.bestScore <= gold; - break; - case DisplayMode.Never: - showDiamondTime = false; - break; + switch (Config.Mode) + { + case DisplayMode.Always: + showDiamondTime = true; + break; + case DisplayMode.Diamond: + showDiamondTime = LevelSelect.instance.bestScore > 0f && LevelSelect.instance.bestScore <= diamond; + break; + case DisplayMode.Gold: + showDiamondTime = LevelSelect.instance.bestScore > 0f && LevelSelect.instance.bestScore <= gold; + break; + case DisplayMode.Never: + showDiamondTime = false; + break; + } } string spacingText = " ";