Skip to content

Commit

Permalink
make remaining charge more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
olivia-may committed Jun 9, 2024
1 parent b219722 commit f7132d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ local function update_formspec(pos, charge, data)

local new_formspec = base_formspec..
"label[0,0;"..S("Powerbank Mk@1", data.mark).."]"..
"label[5.4,2.25;"..S("Power Remaining: @1", technic.pretty_num(charge)).."EU]"..
"label[5.4,2.25;"..S("@1", technic.pretty_num(charge)).."EU]"..
"box[5.45,1.25;"..(fraction * 2.12)..",0.8;"..color.."]"

minetest.get_meta(pos):set_string("formspec", new_formspec)
Expand Down

0 comments on commit f7132d9

Please sign in to comment.