Skip to content

Commit 60cf3f8

Browse files
committedAug 5, 2016
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.
1 parent 6c83ea0 commit 60cf3f8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎mods/doors/init.lua

+1-3
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,7 @@ function doors.register(name, def)
374374
minetest.remove_node({x = pos.x, y = pos.y + 1, z = pos.z})
375375
nodeupdate({x = pos.x, y = pos.y + 1, z = pos.z})
376376
end
377-
def.on_rotate = function(pos, node, user, mode, new_param2)
378-
return false
379-
end
377+
def.on_rotate = screwdriver and screwdriver.rotate_simple or false
380378

381379
if def.protected then
382380
def.can_dig = can_dig_door

1 commit comments

Comments
 (1)

jhcole commented on Sep 18, 2016

@jhcole
Contributor

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.