From 3f9d7bc12d406b686744b0a356429a6cdb043cad Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Wed, 25 Sep 2019 12:44:49 +0200 Subject: [PATCH] Table check --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 196b066..81ca41b 100644 --- a/init.lua +++ b/init.lua @@ -183,6 +183,10 @@ function craftguide.register_craft(def) def.grid = {} end + if not is_table(def.key) then + def.key = {} + end + local cp = copy(def.grid) sort(cp, function(a, b) return #a > #b