summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index e1d30c8..baba251 100644
--- a/init.lua
+++ b/init.lua
@@ -161,6 +161,7 @@ function doc.process_form(player,formname,fields)
local formspec = doc.formspec_core(2)..doc.formspec_category(id, playername)
doc.data.players[playername].catsel = nil
doc.data.players[playername].category = id
+ doc.data.players[playername].entry = nil
minetest.show_formspec(playername, "doc:category", formspec)
break
end