From 48af25ebedcd832a97ffa307383efacbb56ab293 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 9 May 2017 18:52:40 +0200 Subject: [PATCH] Fix some bugs with top bed part --- mods/ITEMS/mcl_beds/api.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mods/ITEMS/mcl_beds/api.lua b/mods/ITEMS/mcl_beds/api.lua index 6d463fa06..d4c61bf4d 100644 --- a/mods/ITEMS/mcl_beds/api.lua +++ b/mods/ITEMS/mcl_beds/api.lua @@ -176,6 +176,11 @@ function mcl_beds.register_bed(name, def) type = "fixed", 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) destruct_bed(pos, 2) end, @@ -187,4 +192,6 @@ function mcl_beds.register_bed(name, def) output = name, recipe = def.recipe }) + + doc.add_entry_alias("nodes", name.."_bottom", "nodes", name.."_top") end