mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
selector_helps → axes
It makes sense to me at least that we should keep stuff to do with parsing axes together.
This commit is contained in:
parent
8877e356f0
commit
6af8bba987
2 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@ dofile(worldeditadditions.modpath.."/utils/node_identification.lua")
|
|||
dofile(worldeditadditions.modpath.."/utils/tables.lua")
|
||||
dofile(worldeditadditions.modpath.."/utils/terrain.lua")
|
||||
dofile(worldeditadditions.modpath.."/utils/raycast_adv.lua") -- For the farwand
|
||||
dofile(worldeditadditions.modpath.."/utils/selector_helps.lua")
|
||||
dofile(worldeditadditions.modpath.."/utils/axes.lua")
|
||||
|
||||
dofile(worldeditadditions.modpath.."/lib/compat/saplingnames.lua")
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ function worldeditadditions.player_axis2d(name)
|
|||
if x > z then return "x", dir.x > 0 and 1 or -1
|
||||
else return "z", dir.z > 0 and 1 or -1 end
|
||||
end
|
||||
|
||||
-- Returns the axis and sign of the axis to the left of the input axis.
|
||||
-- @param axis string x or z.
|
||||
-- @param sign int Sign multiplier.
|
Loading…
Reference in a new issue