summaryrefslogtreecommitdiff
path: root/technic/machines/LV/geothermal.lua
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2013-12-10 20:14:39 -0500
committerShadowNinja <shadowninja@minetest.net>2013-12-10 20:14:39 -0500
commitf3d8b47b20feac740057984a70f93f38252619eb (patch)
tree840fe002e0e623b0794770f8bff7bf7883f4a805 /technic/machines/LV/geothermal.lua
parent818a0e5ff048a24570026b5905cd6e2113cd91c9 (diff)
Add support for minetest.swap_node
Diffstat (limited to 'technic/machines/LV/geothermal.lua')
-rw-r--r--technic/machines/LV/geothermal.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/technic/machines/LV/geothermal.lua b/technic/machines/LV/geothermal.lua
index 6066192..855593c 100644
--- a/technic/machines/LV/geothermal.lua
+++ b/technic/machines/LV/geothermal.lua
@@ -99,11 +99,11 @@ minetest.register_abm({
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")
+ technic.swap_node (pos, "technic:geothermal_active")
return
end
if production_level == 0 then
- hacky_swap_node(pos, "technic:geothermal")
+ technic.swap_node(pos, "technic:geothermal")
meta:set_int("LV_EU_supply", 0)
end
end