diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-17 23:14:21 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-17 23:14:21 -0500 |
commit | df5879ef7204340b1b4a5d97e3dd211f36d76293 (patch) | |
tree | a190e865741a1f6047b499a5947d91b500b1f0ae /lrfurn | |
parent | bc71eb952f8a699180bb7f4c22449a07bb29c91e (diff) | |
download | dreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.tar dreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.tar.gz dreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.tar.bz2 dreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.tar.xz dreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.zip |
update castle, homedecor, ilights, and unified dyes
Diffstat (limited to 'lrfurn')
-rw-r--r-- | lrfurn/armchairs.lua | 2 | ||||
-rw-r--r-- | lrfurn/init.lua | 9 | ||||
-rw-r--r-- | lrfurn/longsofas.lua | 2 | ||||
-rw-r--r-- | lrfurn/sofas.lua | 2 |
4 files changed, 3 insertions, 12 deletions
diff --git a/lrfurn/armchairs.lua b/lrfurn/armchairs.lua index 4fdb512..b36638e 100644 --- a/lrfurn/armchairs.lua +++ b/lrfurn/armchairs.lua @@ -23,7 +23,7 @@ minetest.register_node("lrfurn:armchair", { groups = {snappy=3, ud_param2_colorable = 1}, sounds = default.node_sound_wood_defaults(), node_box = armchair_cbox, - after_place_node = lrfurn.fix_rotation, + after_place_node = unifieddyes.fix_rotation, after_dig_node = unifieddyes.after_dig_node, on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) if not clicker:is_player() then diff --git a/lrfurn/init.lua b/lrfurn/init.lua index 1074482..b529b63 100644 --- a/lrfurn/init.lua +++ b/lrfurn/init.lua @@ -58,15 +58,6 @@ function lrfurn.check_forward(pos, fdir, long, placer) return true end -function lrfurn.fix_rotation(pos, placer, itemstack, pointed_thing) - local node = minetest.get_node(pos) - local yaw = placer:get_look_yaw() - local dir = minetest.yaw_to_dir(yaw) - local fdir = minetest.dir_to_wallmounted(dir) - - minetest.swap_node(pos, { name = node.name, param2 = fdir }) -end - dofile(minetest.get_modpath("lrfurn").."/longsofas.lua") dofile(minetest.get_modpath("lrfurn").."/sofas.lua") dofile(minetest.get_modpath("lrfurn").."/armchairs.lua") diff --git a/lrfurn/longsofas.lua b/lrfurn/longsofas.lua index 3aec132..ad5681f 100644 --- a/lrfurn/longsofas.lua +++ b/lrfurn/longsofas.lua @@ -24,7 +24,7 @@ minetest.register_node("lrfurn:longsofa", { node_box = longsofa_cbox, on_rotate = screwdriver.disallow, after_place_node = function(pos, placer, itemstack, pointed_thing) - lrfurn.fix_rotation(pos, placer, itemstack, pointed_thing) + unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing) if minetest.is_protected(pos, placer:get_player_name()) then return true end local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false) diff --git a/lrfurn/sofas.lua b/lrfurn/sofas.lua index 6bdc317..157481a 100644 --- a/lrfurn/sofas.lua +++ b/lrfurn/sofas.lua @@ -24,7 +24,7 @@ minetest.register_node("lrfurn:sofa", { node_box = sofa_cbox, on_rotate = screwdriver.disallow, after_place_node = function(pos, placer, itemstack, pointed_thing) - lrfurn.fix_rotation(pos, placer, itemstack, pointed_thing) + unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing) if minetest.is_protected(pos, placer:get_player_name()) then return true end local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false) |