fix: Lua: Runtime error from mod 'animalia' attempt to call global 'cos'/'sin'/'vec_center' (a nil value)

This commit is contained in:
Riceball LEE 2022-07-14 11:57:19 +08:00
parent db1c6c84ca
commit 32be6f26b6
No known key found for this signature in database
GPG Key ID: 10F15E84852CB868
1 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,9 @@ local random = math.random
local ceil = math.ceil
local floor = math.floor
local rad = math.rad
local cos = math.cos
local sin = math.sin
local vec_center = creatura.vec_center
local function average(t)
local sum = 0
@ -1620,4 +1623,4 @@ creatura.register_utility("animalia:mount", function(self, player)
end
end
self:set_utility(func)
end)
end)