mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Allow non-string arguments for minetest.is_yes()
This commit is contained in:
@@ -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
|
||||
----------------
|
||||
|
Reference in New Issue
Block a user