From 5155bd150caa4ce8dbd261cd7c24e5115050b5b5 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Mon, 1 Jan 2024 19:20:18 -0800 Subject: [PATCH] Allow empty cells into the system. --- modules/network/network.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/network/network.lua b/modules/network/network.lua index 6c92766..0c8ff8c 100644 --- a/modules/network/network.lua +++ b/modules/network/network.lua @@ -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