diff --git a/development/theidea.odg b/development/theidea.odg new file mode 100644 index 0000000..a0f0780 Binary files /dev/null and b/development/theidea.odg differ diff --git a/modules/network/ctrl.lua b/modules/network/ctrl.lua index b2a1f48..5a9c98c 100644 --- a/modules/network/ctrl.lua +++ b/modules/network/ctrl.lua @@ -5,6 +5,10 @@ local network = me.network local function update_ctrl(pos,node) local network = me.get_network(pos) + if network == nil then + minetest.log("error","no network for ctrl at pos "..minetest.pos_to_string(pos)) + return + end local size = network:get_item_capacity() local meta = minetest.get_meta(pos) local inv = meta:get_inventory() diff --git a/modules/storage/chest.lua b/modules/storage/terminal.lua similarity index 98% rename from modules/storage/chest.lua rename to modules/storage/terminal.lua index 8606e39..e86ada3 100644 --- a/modules/storage/chest.lua +++ b/modules/storage/terminal.lua @@ -54,7 +54,7 @@ local function chest_formspec(pos, start_id, listname, page_max, query) microexpansion.gui_slots .. list .. [[ - label[0,-0.23;ME Chest] + label[0,-0.23;ME Terminal] field_close_on_enter[filter;false] ]].. page_number .. @@ -78,8 +78,8 @@ local function update_chest(pos) end -- [me chest] Register node -microexpansion.register_node("chest", { - description = "ME Chest", +microexpansion.register_node("term", { + description = "ME Terminal", usedfor = "Can interact with storage cells in ME networks", tiles = { "chest_top",