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:
Starbeamrainbowlabs 2021-03-20 01:53:01 +00:00
parent 8877e356f0
commit 6af8bba987
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 1 deletions

View file

@ -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")

View file

@ -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.