Patch homedecor_beds to make sleeping in beds work

master
Jordan Irwin 2021-06-03 01:36:44 -07:00
parent 3987376ede
commit becc7f66b9
3 changed files with 12 additions and 12 deletions

View File

@ -657,7 +657,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[patch.hbarmor]: https://github.com/AntumMT/mod-hbarmor/tree/12a7dea
[patch.helicopter]: https://github.com/AntumMT/mod-helicopter/tree/79d2d3e
[patch.home_gui]: https://github.com/AntumMT/mod-home_gui/tree/addee01
[patch.homedecor]: https://github.com/AntumMT/mp-homedecor/tree/efbc1bb
[patch.homedecor]: https://gitlab.com/AntumMT/mp-homedecor/tree/0a3aa91d
[patch.hovercraft]: https://github.com/AntumMT/mod-hovercraft/tree/0f864c4
[patch.hud]: https://github.com/AntumMT/mod-hud/tree/6846e20
[patch.invisibility]: https://github.com/AntumMT/mod-invisibility/tree/00c0638

View File

@ -5,7 +5,6 @@ easy (priority 1):
------------------
- home_gui
- fix so players don't teleport into ground
- re-add mobs:bee (mobs_animal:bee)
- pbmarks:
- fix so players don't teleport into walls
@ -26,8 +25,6 @@ hard (priority 1):
- allow many more types of tools to be fixed
- replace deprecated methods in mods: 'getpos', 'setyaw', etc.
- enchanting
- homedecor_bedroom:
- can't sleep in beds
- airtanks:
- fix so player can't breath with breathing tube if airtank is empty
- pbmarks:

View File

@ -67,9 +67,10 @@ homedecor.register("bed_regular", {
if itemname == "homedecor:bed_regular" then
homedecor.bed_expansion(pos, clicker, itemstack, pointed_thing, true)
return itemstack
-- else
else
-- bed_on_rightclick(pos, node, clicker)
-- return itemstack
beds.on_rightclick(pos, clicker)
return itemstack
end
end
})
@ -96,10 +97,11 @@ homedecor.register("bed_extended", {
homedecor.unextend_bed(pos)
end,
on_dig = unifieddyes.on_dig,
-- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
-- bed_on_rightclick(pos, node, clicker)
-- return itemstack
-- end,
beds.on_rightclick(pos, clicker)
return itemstack
end,
drop = "homedecor:bed_regular"
})
@ -133,10 +135,11 @@ homedecor.register("bed_kingsize", {
end
end,
on_dig = unifieddyes.on_dig,
-- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
-- bed_on_rightclick(pos, node, clicker)
-- return itemstack
-- end,
beds.on_rightclick(pos, clicker)
return itemstack
end,
})
for w, d in pairs({ ["mahogany"] = S("mahogany"), ["oak"] = S("oak") }) do