forked from VoxeLibre/VoxeLibre
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:
parent
a039cffde9
commit
63c82d0e3d
|
@ -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}},
|
||||
|
|
Loading…
Reference in New Issue