forked from nalc/homedecor_modpack
make beds sleepable https://github.com/mt-mods/homedecor_modpack/issues/13
This commit is contained in:
parent
32a32fa003
commit
63ad77e242
|
@ -31,7 +31,7 @@ local kbed_cbox = {
|
|||
}
|
||||
|
||||
|
||||
-- local bed_on_rightclick = minetest.registered_nodes["beds:bed"].on_rightclick
|
||||
local bed_on_rightclick = minetest.registered_nodes["beds:bed"].on_rightclick
|
||||
|
||||
homedecor.register("bed_regular", {
|
||||
mesh = "homedecor_bed_regular.obj",
|
||||
|
@ -67,9 +67,9 @@ homedecor.register("bed_regular", {
|
|||
if itemname == "homedecor:bed_regular" then
|
||||
homedecor.bed_expansion(pos, clicker, itemstack, pointed_thing, true)
|
||||
return itemstack
|
||||
-- else
|
||||
-- bed_on_rightclick(pos, node, clicker)
|
||||
-- return itemstack
|
||||
else
|
||||
bed_on_rightclick(pos, node, clicker)
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
})
|
||||
|
@ -96,10 +96,10 @@ homedecor.register("bed_extended", {
|
|||
homedecor.unextend_bed(pos)
|
||||
end,
|
||||
on_dig = unifieddyes.on_dig,
|
||||
-- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
-- bed_on_rightclick(pos, node, clicker)
|
||||
-- return itemstack
|
||||
-- end,
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
bed_on_rightclick(pos, node, clicker)
|
||||
return itemstack
|
||||
end,
|
||||
drop = "homedecor:bed_regular"
|
||||
})
|
||||
|
||||
|
@ -133,10 +133,10 @@ homedecor.register("bed_kingsize", {
|
|||
end
|
||||
end,
|
||||
on_dig = unifieddyes.on_dig,
|
||||
-- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
-- bed_on_rightclick(pos, node, clicker)
|
||||
-- return itemstack
|
||||
-- end,
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
bed_on_rightclick(pos, node, clicker)
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
for w, d in pairs({ ["mahogany"] = S("mahogany"), ["oak"] = S("oak") }) do
|
||||
|
|
Loading…
Reference in New Issue
Block a user