From af092f35d97e03a4e75d33acfe601e60431b749b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikita=20Wi=C5=9Bniewski?= Date: Thu, 1 Aug 2024 09:31:54 +0700 Subject: [PATCH] Patch mcl_doors for pickblock --- mods/ITEMS/mcl_doors/api_doors.lua | 2 ++ mods/ITEMS/mcl_doors/api_trapdoors.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_doors/api_doors.lua b/mods/ITEMS/mcl_doors/api_doors.lua index e392bc710..af85fac26 100644 --- a/mods/ITEMS/mcl_doors/api_doors.lua +++ b/mods/ITEMS/mcl_doors/api_doors.lua @@ -327,6 +327,8 @@ function mcl_doors:register_door(name, def) on_rotate = nil, can_dig = check_player_priv, + + _vl_pickblock = name, } local _b_1_def = table.copy(template_def) diff --git a/mods/ITEMS/mcl_doors/api_trapdoors.lua b/mods/ITEMS/mcl_doors/api_trapdoors.lua index 8bbefdda3..e889a5ffa 100644 --- a/mods/ITEMS/mcl_doors/api_trapdoors.lua +++ b/mods/ITEMS/mcl_doors/api_trapdoors.lua @@ -236,6 +236,7 @@ function mcl_doors:register_trapdoor(name, def) } }, on_rotate = on_rotate, + _vl_pickblock = name, }) -- Climbable opened @@ -267,6 +268,7 @@ function mcl_doors:register_trapdoor(name, def) } }, on_rotate = on_rotate, + _vl_pickblock = name, }) if minetest.get_modpath("doc") then