summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-04-30 00:11:10 +0100
committerZefram <zefram@fysh.org>2014-04-30 00:11:10 +0100
commit580a832fdac823a4649f53edd0ba90fb6cd8bc5f (patch)
tree8cd864ad6dbfc75e049afff7e7aa4c6de83394a8 /init.lua
parent48d28b1e5d40c11769f189301af91eb9ebfbe6e5 (diff)
Use appropriate grid shape for each craft type
New system of registration of craft types, recording for each a display description and the appropriate grid shape. Recipes of a registered type are shown in the correct grid. Recipes of unregistered craft types are still displayed as before, using the default 3x3 grid.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index dcd8ecf..ecb22da 100644
--- a/init.lua
+++ b/init.lua
@@ -11,6 +11,7 @@ unified_inventory.current_page = {}
unified_inventory.current_searchbox = {}
unified_inventory.current_index = {}
unified_inventory.current_item = {}
+unified_inventory.registered_craft_types = {}
unified_inventory.crafts_table = {}
unified_inventory.crafts_table_count = 0
unified_inventory.players = {}