diff --git a/moremesecons_luacontroller_tool/init.lua b/moremesecons_luacontroller_tool/init.lua index 5ee2185..142926f 100644 --- a/moremesecons_luacontroller_tool/init.lua +++ b/moremesecons_luacontroller_tool/init.lua @@ -171,7 +171,7 @@ minetest.register_tool("moremesecons_luacontroller_tool:lctt", { pdata[pname] = pdata[pname] or { pos = pos, player_name = pname, - template_name = next(templates[pname]), + template_name = next(templates[pname] or templates[next(templates)]), } minetest.show_formspec(pname, "moremesecons:luacontroller_tool", get_selection_formspec(pdata[pname].player_name, pdata[pname].template_name)) end,