1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Allow non-string arguments for minetest.is_yes()

This commit is contained in:
PilzAdam 2013-09-10 19:24:17 +02:00
parent d820a6bfd8
commit dd5c451e03
4 changed files with 13 additions and 7 deletions

View file

@ -1069,8 +1069,8 @@ minetest.pos_to_string({x=X,y=Y,z=Z}) -> "(X,Y,Z)"
minetest.string_to_pos(string) -> position
^ Same but in reverse
^ escapes characters [ ] \ , ; that can not be used in formspecs
minetest.is_yes(string)
^ returns whether string can be interpreted as yes
minetest.is_yes(arg)
^ returns whether arg can be interpreted as yes
minetest namespace reference
-----------------------------

View file

@ -182,8 +182,8 @@ string:split(separator)
^ eg. string:split("a,b", ",") == {"a","b"}
string:trim()
^ eg. string.trim("\n \t\tfoo bar\t ") == "foo bar"
minetest.is_yes(string)
^ returns whether string can be interpreted as yes
minetest.is_yes(arg)
^ returns whether arg can be interpreted as yes
Class reference
----------------