mirror of
https://github.com/theFox6/microexpansion.git
synced 2024-11-22 23:23:52 +01:00
Export autocrafterCache.
This commit is contained in:
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
|
||||||
|
Loading…
Reference in New Issue
Block a user