Only show diamond time if it exists

This commit is contained in:
Terry Hearst 2023-10-06 21:07:00 -04:00
parent 692e423223
commit b93dc95c4a

View file

@ -18,6 +18,8 @@ namespace DiamondTimeViewer.Patches
float diamond = LevelSelect.instance.level.DiamondTime;
bool showDiamondTime = false;
if (diamond > 0.0f)
{
switch (Config.Mode)
{
case DisplayMode.Always:
@ -33,6 +35,7 @@ namespace DiamondTimeViewer.Patches
showDiamondTime = false;
break;
}
}
string spacingText = "<space=0.5em> ";
string diamondText = "";