Better number formating

Is it 120000 or 1200000?
This commit is contained in:
est31
2015-01-31 04:16:11 +01:00
committed by Vanessa Ezekowitz
parent 0c3f55e0c9
commit d9bf9830b0
6 changed files with 54 additions and 5 deletions

View File

@ -55,7 +55,7 @@ local run = function(pos, node)
meta:set_int("MV_EU_supply", power)
end
meta:set_string("infotext", machine_name.." ("..power.."EU)")
meta:set_string("infotext", technic.format("%s (%eEU)", machine_name, power))
end
minetest.register_node("technic:wind_mill", {