From 86e083c40973d7c4d450546659571f964b4bfefa Mon Sep 17 00:00:00 2001 From: SmallJoker <mk939@ymail.com> Date: Wed, 11 Jan 2023 20:43:06 +0100 Subject: [PATCH] Document a few derived textures --- technic_cnc/cnc.lua | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/technic_cnc/cnc.lua b/technic_cnc/cnc.lua index 0e23f5a..2f28264 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) @@ -72,7 +72,6 @@ end end -local shape = {} local onesize_products = { slope = 2, slope_edge = 1, @@ -164,12 +163,12 @@ local inv = meta:get_inventory() local inputstack = inv:get_stack("src", 1) local inputname = inputstack:get_name() - local multiplier = 0 local size = meta:get_int("size") if size < 1 then size = 1 end for k, _ in pairs(fields) do -- Set a multipier for the half/full size capable blocks + local multiplier if twosize_products[k] ~= nil then multiplier = size * twosize_products[k] else -- Gitblit v1.8.0