Don't delay setting inventory stuff

This commit is contained in:
Wuzzy 2017-01-06 01:25:49 +01:00
parent acc04d796d
commit 7fbe2f98ce
2 changed files with 13 additions and 21 deletions

View file

@ -221,9 +221,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
if fields.suche ~= nil and fields.suche ~= "" then
set_inv(string.lower(fields.suche))
minetest.after(0.5, function()
minetest.show_formspec(player:get_player_name(), "detached:creative", player:get_inventory_formspec())
end)
minetest.show_formspec(player:get_player_name(), "detached:creative", player:get_inventory_formspec())
end
if fields.build then