mirror of
https://github.com/minetest-mods/MoreMesecons.git
synced 2024-11-19 21:53:50 +01:00
Allow using templates on multiple luacontrollers
Fixes #8 Patch submitted by @oiaohm
This commit is contained in:
parent
ce9544d2bf
commit
8a56370ce8
@ -223,10 +223,10 @@ minetest.register_tool("moremesecons_luacontroller_tool:lctt", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
pdata[pname] = pdata[pname] or {
|
pdata[pname] = {
|
||||||
pos = pos,
|
pos = pos,
|
||||||
player_name = pname,
|
player_name = pname,
|
||||||
template_name = next(templates[pname] or templates[next(templates)]),
|
template_name = pdata[pname] and pdata[pname].template_name or 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))
|
minetest.show_formspec(pname, "moremesecons:luacontroller_tool", get_selection_formspec(pdata[pname].player_name, pdata[pname].template_name))
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user