Add custom operators (Part 2)

This commit is contained in:
Jean-Patrick Guerrero
2021-11-29 02:47:36 +01:00
parent 34548d8509
commit eaf7c486b8
5 changed files with 21 additions and 16 deletions

View File

@ -88,7 +88,7 @@ function i3.register_craft(def)
end
for symbol in gmatch(concat(def.grid), ".") do
c = c + 1
c++
def.items[c] = def.key[symbol]
end
else
@ -110,7 +110,7 @@ function i3.register_craft(def)
end
for name in gmatch(concat(items, ","), "[%s%w_:]+") do
c = c + 1
c++
def.items[c] = clean_name(name)
end
end