Creative: Use element instead of parameter to disable close on enter 1317/head
authorrubenwardy <rubenwardy@gmail.com>
Sat, 8 Oct 2016 17:02:14 +0000 (18:02 +0100)
committerrubenwardy <rubenwardy@gmail.com>
Sat, 8 Oct 2016 17:02:14 +0000 (18:02 +0100)
mods/creative/init.lua

index 3affc3d9615a75b9adcde066b2790b053841aa45..24cd673b76576d0912d8e74c65532748482e7128 100644 (file)
@@ -125,7 +125,8 @@ creative.set_creative_formspec = function(player, start_i)
                tooltip[creative_clear;Reset]
                listring[current_player;main]
                ]] ..
-               "field[0.3,3.5;2.2,1;creative_filter;;" .. minetest.formspec_escape(inv.filter) .. ";false]" ..
+               "field[0.3,3.5;2.2,1;creative_filter;;" .. minetest.formspec_escape(inv.filter) .. "]" ..
+               "field_close_on_enter[creative_filter;false]" ..
                "listring[detached:creative_" .. player_name .. ";main]" ..
                "tabheader[0,0;creative_tabs;Crafting,All,Nodes,Tools,Items;" .. tostring(inv.tab_id) .. ";true;false]" ..
                "list[detached:creative_" .. player_name .. ";main;0,0;8,3;" .. tostring(start_i) .. "]" ..