diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-06-16 18:12:21 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-06-16 18:12:21 -0400 |
commit | 75e0a665ce2a45e1158a427d3f70f854f5f4d5a8 (patch) | |
tree | 881209e2c8f7efcbce69482bc3caa19b4828e290 /unifieddyes | |
parent | b8cd2f723c7c9079e631d7a4078862ff47b24915 (diff) | |
download | dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar.gz dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar.bz2 dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar.xz dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.zip |
Updated several mods for Minetest 0.4.16
castles modpack, areas, biome_lib, blox, boost_cart, plantlife modpack
caverealms, coloredwood, concrete, currency, farming redo, home decor,
ilights, mesecons, moreores, pipeworks, signs_lib, technic, unified inventory
unified bricks, unified dyes, worldedit, and xban2
Diffstat (limited to 'unifieddyes')
-rw-r--r-- | unifieddyes/init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unifieddyes/init.lua b/unifieddyes/init.lua index 9b85903..35b2e72 100644 --- a/unifieddyes/init.lua +++ b/unifieddyes/init.lua @@ -33,7 +33,7 @@ unifieddyes = {} unifieddyes.last_used_dye = {} unifieddyes.last_dyed_node = {} -local creative_mode = minetest.setting_getbool("creative_mode") +local creative_mode = minetest.settings:get_bool("creative_mode") -- Boilerplate to support localized strings if intllib mod is installed. local S @@ -207,8 +207,8 @@ end) function unifieddyes.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-1.5) + local yaw = placer:get_look_horizontal() + local dir = minetest.yaw_to_dir(yaw) -- -1.5) local pitch = placer:get_look_vertical() local fdir = minetest.dir_to_wallmounted(dir) @@ -226,8 +226,8 @@ end function unifieddyes.fix_rotation_nsew(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 yaw = placer:get_look_horizontal() + local dir = minetest.yaw_to_dir(yaw+1.5) local fdir = minetest.dir_to_wallmounted(dir) minetest.swap_node(pos, { name = node.name, param2 = fdir }) end |