mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 23:53:44 +01:00
check_dir update (unification)
This commit is contained in:
parent
a6b4d047b8
commit
a0982c70f0
@ -71,7 +71,7 @@ end
|
|||||||
-- @param str string String to check (be sure to remove any + or -).
|
-- @param str string String to check (be sure to remove any + or -).
|
||||||
-- @return bool If string is a valid dir then true.
|
-- @return bool If string is a valid dir then true.
|
||||||
function selection.check_dir(str)
|
function selection.check_dir(str)
|
||||||
return (str == "front" or str == "back" or str == "left" or str == "right" or str == "up" or str == "down")
|
return (str == "facing" or str == "front" or str == "back" or str == "left" or str == "right" or str == "up" or str == "down")
|
||||||
end
|
end
|
||||||
|
|
||||||
return selection
|
return selection
|
||||||
|
Loading…
Reference in New Issue
Block a user