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:
@ -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()
|
||||
|
Reference in New Issue
Block a user