mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 15:48:48 -05:00
Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly
According to doc/lua_api.txt if paramtype2 == "facedir" the two least significant bits of parm2 orient the texture around the axis. For dirs1 (looking at a wall) these would be 0, 1, 2, 3 and for dirs2 (looking at the ceiling) 2, 1, 0, 3
This commit is contained in:
parent
a1db83e93f
commit
9878e8de4f
@ -340,8 +340,8 @@ end
|
|||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
if INIT == "game" then
|
if INIT == "game" then
|
||||||
local dirs1 = {9, 18, 7, 12}
|
local dirs1 = {8, 17, 6, 15}
|
||||||
local dirs2 = {20, 23, 22, 21}
|
local dirs2 = {22, 21, 20, 23}
|
||||||
|
|
||||||
function core.rotate_and_place(itemstack, placer, pointed_thing,
|
function core.rotate_and_place(itemstack, placer, pointed_thing,
|
||||||
infinitestacks, orient_flags)
|
infinitestacks, orient_flags)
|
||||||
|
Loading…
Reference in New Issue
Block a user