Skip to content
Snippets Groups Projects
Commit 48ab62db authored by rubenwardy's avatar rubenwardy Committed by GitHub
Browse files

Make doors place when shift is held instead of calling on_rightclick

Fixes #1364
parent 9ab50702
No related branches found
No related tags found
No related merge requests found
......@@ -265,7 +265,8 @@ function doors.register(name, def)
local node = minetest.get_node(pointed_thing.under)
local pdef = minetest.registered_nodes[node.name]
if pdef and pdef.on_rightclick then
if pdef and pdef.on_rightclick and
not placer:get_player_control().sneak then
return pdef.on_rightclick(pointed_thing.under,
node, placer, itemstack, pointed_thing)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment