mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 09:33:52 +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 -).
|
||||
-- @return bool If string is a valid dir then true.
|
||||
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
|
||||
|
||||
return selection
|
||||
|
Loading…
Reference in New Issue
Block a user