Patch mcl_doors for pickblock

This commit is contained in:
Mikita Wiśniewski 2024-08-01 09:31:54 +07:00
parent 174ad29e0a
commit af092f35d9
2 changed files with 4 additions and 0 deletions

View file

@ -327,6 +327,8 @@ function mcl_doors:register_door(name, def)
on_rotate = nil, on_rotate = nil,
can_dig = check_player_priv, can_dig = check_player_priv,
_vl_pickblock = name,
} }
local _b_1_def = table.copy(template_def) local _b_1_def = table.copy(template_def)

View file

@ -236,6 +236,7 @@ function mcl_doors:register_trapdoor(name, def)
} }
}, },
on_rotate = on_rotate, on_rotate = on_rotate,
_vl_pickblock = name,
}) })
-- Climbable opened -- Climbable opened
@ -267,6 +268,7 @@ function mcl_doors:register_trapdoor(name, def)
} }
}, },
on_rotate = on_rotate, on_rotate = on_rotate,
_vl_pickblock = name,
}) })
if minetest.get_modpath("doc") then if minetest.get_modpath("doc") then