slight change in the teleporters file and add luacontroller detection

This commit is contained in:
HybridDog
2015-12-19 19:18:04 +01:00
parent a2f59a0b6d
commit d095fecefa
2 changed files with 10 additions and 14 deletions

View File

@ -57,11 +57,7 @@ local function get_selection_formspec(pname, selected_template)
end
local function is_luacontroller(pos)
local node = minetest.get_node(pos)
if node.name ~= ":luacontroller" then
return false
end
return string.match(minetest.get_node(pos).name, "mesecons_luacontroller:luacontroller%d%d%d%d")
end
minetest.register_tool("moremesecons_luacontroller_tool:luacontroller_template_tool", {