mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-07-03 16:40:38 +02:00
Update init.lua
add /loadalign command - command to allow loading of a schem file which is aligned to player forward direction (and some helper commands)
This commit is contained in:
@ -1028,7 +1028,7 @@ minetest.register_chatcommand("/loadalign", {
|
|||||||
|
|
||||||
|
|
||||||
-- if set use the global posOffset (as this enables offset to be set once and reused)
|
-- if set use the global posOffset (as this enables offset to be set once and reused)
|
||||||
if posOffset == nil then
|
if laPosOffset == nil then
|
||||||
posOffx, posOffy, posOffz = 0, 0, 0
|
posOffx, posOffy, posOffz = 0, 0, 0
|
||||||
else
|
else
|
||||||
posOffx, posOffy, posOffz = laPosOffset.x, laPosOffset.y, laPosOffset.z
|
posOffx, posOffy, posOffz = laPosOffset.x, laPosOffset.y, laPosOffset.z
|
||||||
|
Reference in New Issue
Block a user