Fix _b_3_ eating through the ground

This commit adds an extra thing which I forgot to add, which basically prevents doors from eating the ground if you right click on them weirdly.
This commit is contained in:
FossFanatic 2023-03-01 17:05:48 +00:00
parent a039cffde9
commit 63c82d0e3d
1 changed files with 10 additions and 2 deletions

View File

@ -572,6 +572,14 @@ function mcl_doors:register_door(name, def)
can_dig = check_player_priv,
})
if not def.only_redstone_can_open then
on_rightclick = function(pos, node, clicker)
if check_player_priv(pos, clicker) then
on_open_close(pos, 1, name.."_t_3", name.."_b_4", name.."_t_4")
end
end
end
minetest.register_node(name.."_b_3", {
mesh = "mcl_doors_door_bottom_closed.obj",
tiles = {{name = tbm, backface_culling = true}},