mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 03:36:47 -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,
|
min = math.min,
|
||||||
modf = math.modf,
|
modf = math.modf,
|
||||||
pi = math.pi,
|
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,
|
rad = math.rad,
|
||||||
random = function(...)
|
random = function(...)
|
||||||
return spcall(math.random, ...)
|
return spcall(math.random, ...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user