From fbc4cc851125bc0a1d48043f78210f4836491beb Mon Sep 17 00:00:00 2001 From: thetaepsilon-gamedev <32034735+thetaepsilon-gamedev@users.noreply.github.com> Date: Tue, 28 Jan 2020 20:38:13 +0000 Subject: [PATCH] technic_cnc/cnc.lua: Fix access to non-existant stack parameter (#528) --- technic_cnc/cnc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/technic_cnc/cnc.lua b/technic_cnc/cnc.lua index 0e23f5a..1116aee 100644 --- a/technic_cnc/cnc.lua +++ b/technic_cnc/cnc.lua @@ -59,7 +59,7 @@ else if minetest.is_protected(pos, player:get_player_name()) then return 0 end - return stack:get_count() + return count end can_dig = function(pos, player)