mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
disable sleeping in beds
This commit is contained in:
parent
3791311422
commit
d4e85cbab2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user