Closed AFCMS closed 1 year ago
Describe the bug
Tried the following code:
i3.new_tab("minify", { description = "Minify", image = "default_stone.png", access = function(player, data) return true end, formspec = function(player, data, fs) fs("label[3,1;This is just a test]") return fs end, fields = function(player, data, fields) end, })
I get this by opening my inventory:
But then I click the "Minify" tab it does nothing.
Additional context
The fields function must return i3.set_fs(player)
fields
i3.set_fs(player)
Oh OK
Or just remove the function fields if you don't need it.
Also you don't need to add return fs in the formspec function.
return fs
formspec
Describe the bug
Tried the following code:
I get this by opening my inventory:
But then I click the "Minify" tab it does nothing.
Additional context