From 222f6880cb30edcefdfd0ceefe2f8ee55ce38ae9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 30 May 2018 14:24:37 +0200 Subject: [PATCH] Protect doors from screwdriver rotation --- mods/ITEMS/mcl_doors/api_doors.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mods/ITEMS/mcl_doors/api_doors.lua b/mods/ITEMS/mcl_doors/api_doors.lua index 2ac0122785..fd5171ed48 100644 --- a/mods/ITEMS/mcl_doors/api_doors.lua +++ b/mods/ITEMS/mcl_doors/api_doors.lua @@ -274,6 +274,8 @@ function mcl_doors:register_door(name, def) action_on = on_mesecons_signal_open, }}, + on_rotate = false, + can_dig = check_player_priv, }) @@ -321,6 +323,8 @@ function mcl_doors:register_door(name, def) action_on = on_mesecons_signal_open_top, }}, + on_rotate = false, + can_dig = check_player_priv, }) @@ -368,6 +372,8 @@ function mcl_doors:register_door(name, def) action_off = on_mesecons_signal_close, }}, + on_rotate = false, + can_dig = check_player_priv, }) @@ -415,6 +421,8 @@ function mcl_doors:register_door(name, def) action_off = on_mesecons_signal_close_top, }}, + on_rotate = false, + can_dig = check_player_priv, })