From 7464382cf52b79553eb932cfd1ddd05e5d31a2b8 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Sat, 6 Jan 2024 10:00:28 -0800 Subject: [PATCH] Export autocrafterCache. --- modules/storage/cterminal.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/storage/cterminal.lua b/modules/storage/cterminal.lua index 95ecfcc..94ff8af 100644 --- a/modules/storage/cterminal.lua +++ b/modules/storage/cterminal.lua @@ -12,11 +12,13 @@ -- The search list doesn't update when main updates or when autocrafting updates. -local autocrafterCache = {} -- caches some recipe data to avoid to call the slow function minetest.get_craft_result() every second - local me = microexpansion local pipeworks_enabled = minetest.get_modpath("pipeworks") and true or false +-- caches some recipe data to avoid to call the slow function minetest.get_craft_result() every second +me.autocrafterCache = {} +local autocrafterCache = me.autocrafterCache + -- [me chest] Get formspec local function chest_formspec(pos, start_id, listname, page_max, q, c) local list