diff options
author | Bryant Mairs <bwmairs@ucsc.edu> | 2013-11-30 19:56:03 -0800 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-12-03 10:57:16 -0500 |
commit | 37acdc77f730c7c0c095bfdd1ede7662c3cfc1ab (patch) | |
tree | 623cfb62ecee1ef9d6ed448efbecf23e0f769b83 | |
parent | 163457ed9a6103642376c3707f168e9804c7583a (diff) |
Move production percentage for geothermal generators to infotext
-rw-r--r-- | technic/machines/LV/geothermal.lua | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/technic/machines/LV/geothermal.lua b/technic/machines/LV/geothermal.lua index 3c5b0e9..6066192 100644 --- a/technic/machines/LV/geothermal.lua +++ b/technic/machines/LV/geothermal.lua @@ -20,12 +20,6 @@ minetest.register_craftitem("technic:geothermal", { description = S("Geothermal Generator"), }) -local geothermal_formspec = - "invsize[8,4;]".. - "label[0,0;"..S("Geothermal Generator").."]".. - "list[current_player;main;0,5;8,4;]" - - minetest.register_node("technic:geothermal", { description = S("Geothermal Generator"), tiles = {"technic_geothermal_top.png", "technic_machine_bottom.png", "technic_geothermal_side.png", @@ -38,7 +32,6 @@ minetest.register_node("technic:geothermal", { local meta = minetest.get_meta(pos) meta:set_string("infotext", S("Geothermal Generator")) meta:set_int("LV_EU_supply", 0) - meta:set_string("formspec", geothermal_formspec) end, }) @@ -102,10 +95,8 @@ minetest.register_abm({ meta:set_int("LV_EU_supply", eu_supply) end - meta:set_string("formspec", - "invsize[8,4;]".. - "label[0,0;"..S("Geothermal Generator").."]".. - "label[4,0;"..S("Production at %d%%"):format(production_level).."]") + meta:set_string("infotext", + S("Geothermal Generator").." ("..production_level.."%)") if production_level > 0 and minetest.get_node(pos).name == "technic:geothermal" then hacky_swap_node (pos, "technic:geothermal_active") |