Allow empty cells into the system.

This commit is contained in:
Mike Stump 2024-01-01 19:20:18 -08:00
parent 92cc4097d8
commit 5155bd150c

@ -284,7 +284,9 @@ local function create_inventory(net)
allow_put = function(inv, listname, index, stack)
local inside_stack = inv:get_stack(listname, index)
local stack_name = stack:get_name()
if minetest.get_item_group(stack_name, "microexpansion_cell") > 0 then
if minetest.get_item_group(stack_name, "microexpansion_cell") > 0 and
stack:get_meta():get_string("items") ~= "" and
stack:get_meta():get_string("items") ~= "return {}" then
return 0
end
-- improve performance by skipping unnessecary calls