diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-10-15 21:56:18 -0600 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-10-15 21:56:18 -0600 |
commit | 0430d423f7e185736061bb119ca27f4a31f02880 (patch) | |
tree | d3dc3e88e7c9d5b4416f647992aa363b2e780cc3 /nodes/node_power_connector.lua | |
parent | c801e5994213528667adcbf17b98a3e6e2a53674 (diff) |
account for extrusion in power consumption, add on_place blacklist
Diffstat (limited to 'nodes/node_power_connector.lua')
-rw-r--r-- | nodes/node_power_connector.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nodes/node_power_connector.lua b/nodes/node_power_connector.lua index f8d7a80..5cf832f 100644 --- a/nodes/node_power_connector.lua +++ b/nodes/node_power_connector.lua @@ -70,7 +70,7 @@ minetest.register_node("digtron:power_connector", { local layout = DigtronLayout.create(pos, sender) local max_cost = 0 for _, node_image in pairs(layout.builders) do - max_cost = max_cost + digtron.config.build_cost + max_cost = max_cost + (digtron.config.build_cost * (node_image.meta.fields.extrusion or 1)) end for _, node_image in pairs(layout.diggers) do max_cost = max_cost + max_dig_cost |