Export autocrafterCache.

This commit is contained in:
Mike Stump 2024-01-06 10:00:28 -08:00
parent 6e9483b615
commit 7464382cf5

@ -12,11 +12,13 @@
-- The search list doesn't update when main updates or when autocrafting updates. -- 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 me = microexpansion
local pipeworks_enabled = minetest.get_modpath("pipeworks") and true or false 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 -- [me chest] Get formspec
local function chest_formspec(pos, start_id, listname, page_max, q, c) local function chest_formspec(pos, start_id, listname, page_max, q, c)
local list local list