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