Round the result

This commit is contained in:
Solaire authored and GitHub committed 2025-09-03 22:58:17 +01:00
1 parent 71cd1e0676
commit 18ac3ce0ca
1 file changed
+2 -2
+2 -2
View File
@@ -257,7 +257,7 @@ Framework.GetHunger = function(src)
for _, entry in ipairs(status) do
if entry.name == "hunger" then
return entry.percent
return math.floor(entry.percent)
end
end
end
@@ -271,7 +271,7 @@ Framework.GetThirst = function(src)
for _, entry in ipairs(status) do
if entry.name == "thirst" then
return entry.percent
return math.floor(entry.percent)
end
end
end