Small cleanup
This commit is contained in:
parent
ea7140a7bb
commit
482027d09b
1
init.lua
1
init.lua
|
@ -113,6 +113,7 @@ i3.files.common()
|
||||||
i3.files.api(http)
|
i3.files.api(http)
|
||||||
i3.files.compress()
|
i3.files.compress()
|
||||||
i3.files.detached()
|
i3.files.detached()
|
||||||
|
i3.files.fields()
|
||||||
i3.files.groups()
|
i3.files.groups()
|
||||||
i3.files.callbacks(http, storage)
|
i3.files.callbacks(http, storage)
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,6 @@ end
|
||||||
i3.new_tab("inventory", {
|
i3.new_tab("inventory", {
|
||||||
description = S"Inventory",
|
description = S"Inventory",
|
||||||
formspec = get_inventory_fs,
|
formspec = get_inventory_fs,
|
||||||
fields = i3.files.fields(),
|
|
||||||
slots = true,
|
slots = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -464,7 +464,7 @@ core.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
local tab = i3.tabs[data.tab]
|
local tab = i3.tabs[data.tab]
|
||||||
|
|
||||||
if tab then
|
if tab then
|
||||||
if tab.slots and data.tab > 1 then
|
if tab.slots then
|
||||||
inv_fields(player, data, fields)
|
inv_fields(player, data, fields)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -475,5 +475,3 @@ core.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
|
|
||||||
return true, set_fs(player)
|
return true, set_fs(player)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
return inv_fields
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue