Skip to content
Snippets Groups Projects
Commit 9862bbc8 authored by Thomas--S's avatar Thomas--S Committed by paramat
Browse files

Doors: Same naming for trapdoors as for doors

This makes register_trapdoor act the same as the register_door.
If `name` isn't prefixed, it will be prefixed with "doors:".
parent 3661cb61
Branches
No related tags found
No related merge requests found
......@@ -533,6 +533,10 @@ function _doors.trapdoor_toggle(pos, node, clicker)
end
function doors.register_trapdoor(name, def)
if not name:find(":") then
name = "doors:" .. name
end
local name_closed = name
local name_opened = name.."_open"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment