[homedecor (mp)] Update to Git patch d0d79dc:

https://github.com/AntumDeluge/mtmp-homedecor/tree/d0d79dc
master
AntumDeluge 2017-06-10 18:57:39 -07:00
parent 73f653fb96
commit b004054e73
2 changed files with 10 additions and 1 deletions

View File

@ -534,7 +534,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[patch.farming_plus]: https://github.com/AntumDeluge/mtmod-farming_plus/tree/454a443
[patch.hbarmor]: https://github.com/AntumDeluge/mtmod-hbarmor/tree/d1168bb
[patch.helicopter]: https://github.com/AntumDeluge/mtmod-helicopter/tree/dd53fdd
[patch.homedecor]: https://github.com/AntumDeluge/mtmp-homedecor/tree/1776dea
[patch.homedecor]: https://github.com/AntumDeluge/mtmp-homedecor/tree/d0d79dc
[patch.hovercraft]: https://github.com/AntumDeluge/mtmod-hovercraft/tree/73a6223
[patch.hud]: https://github.com/AntumDeluge/mtmod-hud/tree/6846e20
[patch.hudbars]: https://github.com/AntumDeluge/mtmod-hudbars/tree/31926a0

View File

@ -63,6 +63,15 @@ homedecor.register("bed_regular", {
end,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
local itemname = itemstack:get_name()
if itemname == "homedecor:bed_regular" then
homedecor.bed_expansion(pos, clicker, itemstack, pointed_thing, true)
return itemstack
else
if minetest.get_modpath("beds") then
beds.on_rightclick(pos, clicker)
end
return itemstack
end
if minetest.get_modpath("beds") then
beds.on_rightclick(pos, clicker)
end