technic_cnc/cnc.lua: Fix access to non-existant stack parameter (#528)

This commit is contained in:
thetaepsilon-gamedev 2020-01-28 20:38:13 +00:00 committed by SmallJoker
parent 904800abde
commit fbc4cc8511

View File

@ -59,7 +59,7 @@ else
if minetest.is_protected(pos, player:get_player_name()) then if minetest.is_protected(pos, player:get_player_name()) then
return 0 return 0
end end
return stack:get_count() return count
end end
can_dig = function(pos, player) can_dig = function(pos, player)