From 60cf3f85b6e661482ec2705cadbdc1b04e388d19 Mon Sep 17 00:00:00 2001
From: Tim <t4im@users.noreply.github.com>
Date: Tue, 2 Aug 2016 20:10:57 +0200
Subject: [PATCH] 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.
---
 mods/doors/init.lua | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/mods/doors/init.lua b/mods/doors/init.lua
index 3e67ef44..b4cf90ff 100644
--- a/mods/doors/init.lua
+++ b/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
-- 
GitLab