mirror of
https://github.com/minetest-mods/i3.git
synced 2025-07-13 22:10:35 +02:00
Small cleanup
This commit is contained in:
@ -196,7 +196,6 @@ end
|
||||
i3.new_tab("inventory", {
|
||||
description = S"Inventory",
|
||||
formspec = get_inventory_fs,
|
||||
fields = i3.files.fields(),
|
||||
slots = true,
|
||||
})
|
||||
|
||||
|
@ -464,7 +464,7 @@ core.register_on_player_receive_fields(function(player, formname, fields)
|
||||
local tab = i3.tabs[data.tab]
|
||||
|
||||
if tab then
|
||||
if tab.slots and data.tab > 1 then
|
||||
if tab.slots then
|
||||
inv_fields(player, data, fields)
|
||||
end
|
||||
|
||||
@ -475,5 +475,3 @@ core.register_on_player_receive_fields(function(player, formname, fields)
|
||||
|
||||
return true, set_fs(player)
|
||||
end)
|
||||
|
||||
return inv_fields
|
||||
|
Reference in New Issue
Block a user