Fix minetest.is_nan

This commit is contained in:
Lars Mueller 2020-12-24 14:48:05 +01:00 committed by Nils Dagsson Moskopp
parent 3954bd96f9
commit 62d34be234
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 4 additions and 0 deletions

View File

@ -697,3 +697,7 @@ function core.privs_to_string(privs, delim)
end end
return table.concat(list, delim) return table.concat(list, delim)
end end
function core.is_nan(number)
return number ~= number
end