Small cleanups

master
CasimirKaPazi 2022-06-28 22:54:46 +02:00
parent c442ba9414
commit 79200641e0
2 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ function farming.register_growing(max_stage, stages, interval, chance, lightleve
action = function(pos, node)
pos.y = pos.y-1
if minetest.get_item_group(minetest.get_node(pos).name, "soil") < math.random(1,3) then
return itemstack
return
end
pos.y = pos.y+1
if minetest.get_node_light(pos) < lightlevel then

View File

@ -29,7 +29,7 @@ end
local table_copy = function(table)
local out = {}
for k,v in pairs(table) do
for k, v in pairs(table) do
out[k] = v
end
return out
@ -47,7 +47,7 @@ zcg.add_craft = function(input, output, groups)
c.result = input.output
if c.items == nil then return end
if c.result then
local _ start = string.find(c.result, " ")
local _, start = string.find(c.result, " ")
if start then
c.count = c.result:sub(start)
end