From fbc4cc851125bc0a1d48043f78210f4836491beb Mon Sep 17 00:00:00 2001
From: thetaepsilon-gamedev <32034735+thetaepsilon-gamedev@users.noreply.github.com>
Date: Tue, 28 Jan 2020 21:38:13 +0100
Subject: [PATCH] technic_cnc/cnc.lua: Fix access to non-existant stack parameter (#528)

---
 technic_cnc/cnc.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 @@
 		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)

--
Gitblit v1.8.0