player_inventory[owner_name] = {
size = 0,
filter = "",
- start_i = 1,
+ start_i = 0,
tab_id = 2,
}
elseif fields.creative_tabs then
local tab = tonumber(fields.creative_tabs)
inv.tab_id = tab
- player_inventory[player_name].start_i = 1
+ player_inventory[player_name].start_i = 0
if tab == 1 then
creative.set_crafting_formspec(player)
creative.set_creative_formspec(player, 0)
end
elseif fields.creative_clear then
- player_inventory[player_name].start_i = 1
+ player_inventory[player_name].start_i = 0
inv.filter = ""
creative.update_creative_inventory(player_name)
creative.set_creative_formspec(player, 0)
elseif fields.creative_search or
fields.key_enter_field == "creative_filter" then
- player_inventory[player_name].start_i = 1
+ player_inventory[player_name].start_i = 0
inv.filter = fields.creative_filter:lower()
creative.update_creative_inventory(player_name)
creative.set_creative_formspec(player, 0)