Skip to content

Commit 50eb079

Browse files
committedJun 14, 2016
Creative: Add missing 'formspec_escape' to fix bug
Symbols used in search caused the game to hang with a grey screen, for example searching for 'diamond;ingot'
1 parent da0fe31 commit 50eb079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎mods/creative/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ creative.set_creative_formspec = function(player, start_i)
124124
tooltip[creative_clear;Reset]
125125
listring[current_player;main]
126126
]] ..
127-
"field[0.3,3.5;2.2,1;creative_filter;;" .. inv.filter .. "]" ..
127+
"field[0.3,3.5;2.2,1;creative_filter;;" .. minetest.formspec_escape(inv.filter) .. "]" ..
128128
"listring[detached:creative_" .. player_name .. ";main]" ..
129129
"tabheader[0,0;creative_tabs;Crafting,All,Nodes,Tools,Items;" .. tostring(inv.tab_id) .. ";true;false]" ..
130130
"list[detached:creative_" .. player_name .. ";main;0,0;8,3;" .. tostring(start_i) .. "]" ..

0 commit comments

Comments
 (0)