Skip to content
Permalink
Browse files

Doors: Allow the screwdriver to rotate doors around y-axis.

Keep other axis' disabled to prevent the hidden placeholder node to become irremovable to players.
  • Loading branch information...
t4im committed Aug 2, 2016
1 parent 6c83ea0 commit 60cf3f85b6e661482ec2705cadbdc1b04e388d19
Showing with 1 addition and 3 deletions.
  1. +1 −3 mods/doors/init.lua
@@ -374,9 +374,7 @@ function doors.register(name, def)
minetest.remove_node({x = pos.x, y = pos.y + 1, z = pos.z})
nodeupdate({x = pos.x, y = pos.y + 1, z = pos.z})
end
def.on_rotate = function(pos, node, user, mode, new_param2)
return false
end
def.on_rotate = screwdriver and screwdriver.rotate_simple or false

if def.protected then
def.can_dig = can_dig_door

1 comment on commit 60cf3f8

@jhcole

This comment has been minimized.

Copy link
Contributor

jhcole commented on 60cf3f8 Sep 18, 2016

Allowing the screwdriver to rotate the door like this, fails to rotate the 'Hidden Door Segment' that is in the hinge of the top half of the door. For players, this segment causes unexpected collision with a hidden object (see #1290).

Please sign in to comment.
You can’t perform that action at this time.