mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-01-03 13:30:20 +01:00
Re-enable sleeping in beds
This commit is contained in:
parent
970636571e
commit
67ddc87d2c
@ -67,11 +67,12 @@ homedecor.register("bed_regular", {
|
|||||||
homedecor.bed_expansion(pos, clicker, itemstack, pointed_thing, true)
|
homedecor.bed_expansion(pos, clicker, itemstack, pointed_thing, true)
|
||||||
return itemstack
|
return itemstack
|
||||||
else
|
else
|
||||||
-- if minetest.get_modpath("beds") then
|
if minetest.get_modpath("beds") then
|
||||||
-- beds.on_rightclick(pos, clicker)
|
beds.on_rightclick(pos, clicker)
|
||||||
-- end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
return itemstack
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -98,13 +99,13 @@ homedecor.register("bed_extended", {
|
|||||||
unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
|
unifieddyes.after_dig_node(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)
|
||||||
-- local itemname = itemstack:get_name()
|
local itemname = itemstack:get_name()
|
||||||
-- if minetest.get_modpath("beds") then
|
if minetest.get_modpath("beds") then
|
||||||
-- beds.on_rightclick(pos, clicker)
|
beds.on_rightclick(pos, clicker)
|
||||||
-- end
|
end
|
||||||
-- return itemstack
|
return itemstack
|
||||||
-- end,
|
end,
|
||||||
drop = "homedecor:bed_regular"
|
drop = "homedecor:bed_regular"
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -139,13 +140,13 @@ 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)
|
||||||
-- local itemname = itemstack:get_name()
|
local itemname = itemstack:get_name()
|
||||||
-- if minetest.get_modpath("beds") then
|
if minetest.get_modpath("beds") then
|
||||||
-- beds.on_rightclick(pos, clicker)
|
beds.on_rightclick(pos, clicker)
|
||||||
-- end
|
end
|
||||||
-- return itemstack
|
return itemstack
|
||||||
-- end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
for _, w in pairs({ N_("mahogany"), N_("oak") }) do
|
for _, w in pairs({ N_("mahogany"), N_("oak") }) do
|
||||||
|
Loading…
Reference in New Issue
Block a user