You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2026-06-20 16:32:28 +02:00
Fix nil bug - Fancy Time
Values below 60 seconds were returning nil in short_fancy_time() Filter removed seconds, resulting values was empty (nil)
This commit is contained in:
@@ -124,7 +124,9 @@ end
|
||||
---@param seconds <number>
|
||||
function Public.short_fancy_time(seconds)
|
||||
local fancy = Public.seconds_to_fancy(seconds,true)
|
||||
fancy = Public.filter_time(fancy, {"seconds","s"}, false)
|
||||
if seconds > 59 then
|
||||
fancy = Public.filter_time(fancy, {"seconds","s"}, false)
|
||||
end
|
||||
fancy = Public.fancy_time_formatting(fancy)
|
||||
return fancy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user