mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-02 23:00:22 +02:00
use unified dyes' rotation correction functions
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user