disable sleeping in beds

This commit is contained in:
Vanessa Dannenberg 2018-10-25 12:34:33 -04:00
parent 3791311422
commit d4e85cbab2

View File

@ -64,9 +64,9 @@ homedecor.register("bed_regular", {
if itemname == "homedecor:bed_regular" then
homedecor.bed_expansion(pos, clicker, itemstack, pointed_thing, true)
return itemstack
else
homedecor.beds_on_rightclick(pos, node, clicker)
return itemstack
-- else
-- homedecor.beds_on_rightclick(pos, node, clicker)
-- return itemstack
end
end
})
@ -92,10 +92,10 @@ homedecor.register("bed_extended", {
after_dig_node = function(pos, oldnode, oldmetadata, digger)
homedecor.unextend_bed(pos)
end,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
homedecor.beds_on_rightclick(pos, node, clicker)
return itemstack
end,
-- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
-- homedecor.beds_on_rightclick(pos, node, clicker)
-- return itemstack
-- end,
drop = "homedecor:bed_regular"
})
@ -128,10 +128,10 @@ homedecor.register("bed_kingsize", {
inv:add_item("main", "homedecor:bed_regular 2")
end
end,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
homedecor.beds_on_rightclick(pos, node, clicker)
return itemstack
end,
-- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
-- homedecor.beds_on_rightclick(pos, node, clicker)
-- return itemstack
-- end,
})
for _, w in pairs({ N_("mahogany"), N_("oak") }) do