diff options
author | Wuzzy <almikes@aol.com> | 2015-03-11 18:53:40 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2015-03-11 18:53:40 +0100 |
commit | 6766b0a9074bda7ca078a4178b14bb7106179b02 (patch) | |
tree | e1016c90f4681730c9b1aec2953ad3790a1e8995 /init.lua | |
parent | 0b23c7999a8d660dff81423996ab5fef7812bdbd (diff) |
Remove placeholders—part 1
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -157,10 +157,10 @@ function doc.process_form(player,formname,fields) contents = doc.formspec_main() subformname = "main" elseif(tab==2) then - contents = doc.formspec_category("one", playername) + contents = doc.formspec_category(doc.data.players[playername].category, playername) subformname = "category" elseif(tab==3) then - contents = doc.formspec_entry("one", "o1") + contents = doc.formspec_entry(doc.data.players[playername].category, doc.data.players[playername].entry) subformname = "entry" end formspec = doc.formspec_core(tab)..contents @@ -195,6 +195,7 @@ function doc.process_form(player,formname,fields) local event = minetest.explode_textlist_event(fields["doc_catlist"]) if event.type == "CHG" then doc.data.players[playername].catsel = event.index + doc.data.players[playername].entry = doc.data.players[playername].entry_ids[event.index] end end elseif(formname == "doc:entry") then |