mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 06:32:25 +01:00
Make doors place when shift is held instead of calling on_rightclick
Fixes #1364
This commit is contained in:
parent
9ab50702fb
commit
48ab62db88
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user