diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-10-15 12:54:48 -0600 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-10-15 12:54:48 -0600 |
commit | d480b9bf2ff9f37a5eb0ba2af772a2aa46c84299 (patch) | |
tree | 4e008e0f705b05aaa248d0d71e2cf2f9a7274e98 /util.lua | |
parent | fec29263b0302ee9efc747e6e50aa9847d5c88f3 (diff) |
mark_diggable needed a player reference to dig steel doors without crashing
Diffstat (limited to 'util.lua')
-rw-r--r-- | util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |