forked from minetest-mods/craftguide
Table check
This commit is contained in:
4
init.lua
4
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
|
||||
|
Reference in New Issue
Block a user