summaryrefslogtreecommitdiff
path: root/util_execute_cycle.lua
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-10-15 12:54:48 -0600
committerFaceDeer <derksenmobile@gmail.com>2017-10-15 12:54:48 -0600
commitd480b9bf2ff9f37a5eb0ba2af772a2aa46c84299 (patch)
tree4e008e0f705b05aaa248d0d71e2cf2f9a7274e98 /util_execute_cycle.lua
parentfec29263b0302ee9efc747e6e50aa9847d5c88f3 (diff)
mark_diggable needed a player reference to dig steel doors without crashing
Diffstat (limited to 'util_execute_cycle.lua')
-rw-r--r--util_execute_cycle.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util_execute_cycle.lua b/util_execute_cycle.lua
index 9b0bf97..de0ad1a 100644
--- a/util_execute_cycle.lua
+++ b/util_execute_cycle.lua
@@ -133,7 +133,7 @@ digtron.execute_dig_cycle = function(pos, clicker)
local target = minetest.get_node(location.pos)
local targetdef = minetest.registered_nodes[target.name]
if targetdef.execute_dig ~= nil then
- local fuel_cost, dropped = targetdef.execute_dig(location.pos, layout.protected, layout.nodes_dug, controlling_coordinate)
+ local fuel_cost, dropped = targetdef.execute_dig(location.pos, layout.protected, layout.nodes_dug, controlling_coordinate, false, clicker)
if table.getn(dropped) > 0 then
for _, itemname in pairs(dropped) do
table.insert(items_dropped, itemname)
@@ -449,7 +449,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker)
local target = minetest.get_node(location.pos)
local targetdef = minetest.registered_nodes[target.name]
if targetdef.execute_dig ~= nil then
- local fuel_cost, dropped = targetdef.execute_dig(location.pos, layout.protected, layout.nodes_dug, controlling_coordinate, true)
+ local fuel_cost, dropped = targetdef.execute_dig(location.pos, layout.protected, layout.nodes_dug, controlling_coordinate, true, clicker)
if table.getn(dropped) > 0 then
for _, itemname in pairs(dropped) do
table.insert(items_dropped, itemname)