From d480b9bf2ff9f37a5eb0ba2af772a2aa46c84299 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sun, 15 Oct 2017 12:54:48 -0600 Subject: mark_diggable needed a player reference to dig steel doors without crashing --- util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.lua') 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) -- cgit v1.2.3