Skip to content

Commit

Permalink
Creative: Add missing 'formspec_escape' to fix bug
Browse files Browse the repository at this point in the history
Symbols used in search caused the game to hang with a grey screen,
for example searching for 'diamond;ingot'
  • Loading branch information
paramat committed Jun 14, 2016
1 parent da0fe31 commit 50eb079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/creative/init.lua
Expand Up @@ -124,7 +124,7 @@ 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;;" .. inv.filter .. "]" ..
"field[0.3,3.5;2.2,1;creative_filter;;" .. minetest.formspec_escape(inv.filter) .. "]" ..
"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) .. "]" ..
Expand Down

0 comments on commit 50eb079

Please sign in to comment.