mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-30 06:43:45 +01:00
Disable double doors because of bug on place
parent
fe60b2c8bb
commit
d34d368306
@ -134,13 +134,11 @@ function mcl_doors:register_door(name, def)
|
|||||||
elseif p2 == 3 then
|
elseif p2 == 3 then
|
||||||
pt3.z = pt3.z-1
|
pt3.z = pt3.z-1
|
||||||
end
|
end
|
||||||
if not string.find(minetest.get_node(pt3).name, name.."_b_") then
|
-- Set door nodes
|
||||||
minetest.set_node(pt, {name=name.."_b_1", param2=p2})
|
minetest.set_node(pt, {name=name.."_b_1", param2=p2})
|
||||||
minetest.set_node(pt2, {name=name.."_t_1", param2=p2})
|
minetest.set_node(pt2, {name=name.."_t_1", param2=p2})
|
||||||
else
|
-- TODO: Mirror door when 2 doors are placed next to each other, to create double doors
|
||||||
minetest.set_node(pt, {name=name.."_b_2", param2=p2})
|
|
||||||
minetest.set_node(pt2, {name=name.."_t_2", param2=p2})
|
|
||||||
end
|
|
||||||
if def.sounds and def.sounds.place then
|
if def.sounds and def.sounds.place then
|
||||||
minetest.sound_play(def.sounds.place, {pos=pt})
|
minetest.sound_play(def.sounds.place, {pos=pt})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user