summaryrefslogtreecommitdiff
path: root/util.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.lua
parentfec29263b0302ee9efc747e6e50aa9847d5c88f3 (diff)
mark_diggable needed a player reference to dig steel doors without crashing
Diffstat (limited to 'util.lua')
-rw-r--r--util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.lua b/util.lua
index 05c6c79..4357353 100644
--- a/util.lua
+++ b/util.lua
@@ -31,7 +31,7 @@ digtron.find_new_pos_downward = function(pos, facing)
return vector.add(pos, digtron.facedir_to_down_dir(facing))
end
-digtron.mark_diggable = function(pos, nodes_dug)
+digtron.mark_diggable = function(pos, nodes_dug, player)
-- mark the node as dug, if the player provided would have been able to dig it.
-- Don't *actually* dig the node yet, though, because if we dig a node with sand over it the sand will start falling
-- and then destroy whatever node we place there subsequently (either by a builder head or by moving a digtron node)