mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-19 00:30:28 +02:00
Add support for minetest.swap_node
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user