1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-19 06:00:19 +02:00

convert desk lamps to param2 colorization

This commit is contained in:
Vanessa Ezekowitz
2017-01-31 19:01:47 -05:00
parent 3969f1a198
commit 5dd5d3a14b
6 changed files with 2240 additions and 1250 deletions

View File

@ -79,6 +79,9 @@ function homedecor.fix_rotation(pos, placer, itemstack, pointed_thing)
minetest.swap_node(pos, { name = node.name, param2 = fdir })
end
-- use this when you have a "wallmounted" node that should never be oriented
-- to floor or ceiling (e.g. a desk lamp)
function homedecor.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
local node = minetest.get_node(pos)
local yaw = placer:get_look_yaw()