mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-05-31 19:36:27 -04:00
fix: Lua: Runtime error from mod 'animalia' attempt to call global 'cos'/'sin'/'vec_center' (a nil value)
This commit is contained in:
parent
db1c6c84ca
commit
32be6f26b6
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,9 @@ local random = math.random
|
||||||
local ceil = math.ceil
|
local ceil = math.ceil
|
||||||
local floor = math.floor
|
local floor = math.floor
|
||||||
local rad = math.rad
|
local rad = math.rad
|
||||||
|
local cos = math.cos
|
||||||
|
local sin = math.sin
|
||||||
|
local vec_center = creatura.vec_center
|
||||||
|
|
||||||
local function average(t)
|
local function average(t)
|
||||||
local sum = 0
|
local sum = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue