1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-23 22:22:34 +02:00

Small fixes

This commit is contained in:
Gerkiz
2025-09-07 15:30:49 +02:00
parent 492e2e68dd
commit 32ff9cde6e
2 changed files with 6 additions and 2 deletions

View File

@@ -97,10 +97,13 @@ local function create_manabar(player, size)
end
local function set_bar(min, max, render_object, mana)
local m = min / max
if not render_object or not render_object.valid then
return
end
local m = 0
if max > 0 then
m = min / max
end
local x_scale = render_object.y_scale * 8
render_object.x_scale = x_scale * m
if not mana then