mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Fix some bugs with top bed part
This commit is contained in:
parent
0901fca7b2
commit
48af25ebed
1 changed files with 7 additions and 0 deletions
|
@ -176,6 +176,11 @@ function mcl_beds.register_bed(name, def)
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = def.selectionbox.top,
|
fixed = def.selectionbox.top,
|
||||||
},
|
},
|
||||||
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
|
mcl_beds.on_rightclick(pos, clicker)
|
||||||
|
return itemstack
|
||||||
|
end,
|
||||||
|
on_rotate = false,
|
||||||
on_destruct = function(pos)
|
on_destruct = function(pos)
|
||||||
destruct_bed(pos, 2)
|
destruct_bed(pos, 2)
|
||||||
end,
|
end,
|
||||||
|
@ -187,4 +192,6 @@ function mcl_beds.register_bed(name, def)
|
||||||
output = name,
|
output = name,
|
||||||
recipe = def.recipe
|
recipe = def.recipe
|
||||||
})
|
})
|
||||||
|
|
||||||
|
doc.add_entry_alias("nodes", name.."_bottom", "nodes", name.."_top")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue