fix items glitch

master
TenPlus1 2018-02-19 10:33:46 +00:00
parent b72ed15586
commit 4e57a32c6b
1 changed files with 4 additions and 1 deletions

View File

@ -143,7 +143,10 @@ trash:set_size("main", 1)
creative.formspec_add = ""
function creative.register_tab(name, title, items)
function creative.register_tab(name, title, inv_items)
-- copy items table so that original isn't affected
local items = table.copy(inv_items)
-- remove item fluff and only keep name, description and groups
for name, def in pairs(items) do