mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
Disable sleeping in beds (again)
This commit is contained in:
parent
23d1365939
commit
9693d9dd46
@ -67,12 +67,11 @@ 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
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -99,13 +98,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"
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -140,13 +139,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