mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
math.pow compat in Lua 5.3 (#1992).
This commit is contained in:
parent
b503b947e4
commit
97b1313531
@ -857,7 +857,9 @@ sandbox = {
|
||||
min = math.min,
|
||||
modf = math.modf,
|
||||
pi = math.pi,
|
||||
pow = math.pow,
|
||||
pow = math.pow or function(a, b) -- Deprecated in Lua 5.3
|
||||
return a^b
|
||||
end,
|
||||
rad = math.rad,
|
||||
random = function(...)
|
||||
return spcall(math.random, ...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user