mirror of
https://github.com/HybridDog/vector_extras.git
synced 2024-11-13 05:50:33 +01:00
🐈
This commit is contained in:
parent
70e08a15a2
commit
52adb555cb
19
init.lua
19
init.lua
|
@ -696,6 +696,25 @@ function funcs.unpack(pos)
|
|||
return pos.z, pos.y, pos.x
|
||||
end
|
||||
|
||||
function funcs.get_max_coords(pos)
|
||||
if pos.x < pos.y then
|
||||
if pos.y < pos.z then
|
||||
return "z", "y", "x"
|
||||
end
|
||||
if pos.x < pos.z then
|
||||
return "y", "z", "x"
|
||||
end
|
||||
return "y", "x", "z"
|
||||
end
|
||||
if pos.x < pos.z then
|
||||
return "z", "x", "y"
|
||||
end
|
||||
if pos.y < pos.z then
|
||||
return "x", "z", "y"
|
||||
end
|
||||
return "x", "y", "z"
|
||||
end
|
||||
|
||||
|
||||
dofile(minetest.get_modpath("vector_extras").."/vector_meta.lua")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user