nodecore-cd2025/mods/nc_api/issue9043.lua
2019-10-13 09:38:07 -04:00

11 lines
434 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local minetest
= minetest
-- LUALOCALS > ---------------------------------------------------------
minetest.rotate_node = function(itemstack, placer, pointed_thing)
local invert_wall = placer and placer:get_player_control().sneak or false
return minetest.rotate_and_place(itemstack, placer, pointed_thing, false,
{invert_wall = invert_wall}, true)
end