From 8ba75101ae5465daf461bba3bc1844e33eefa130 Mon Sep 17 00:00:00 2001 From: ElCeejo <40281901+ElCeejo@users.noreply.github.com> Date: Sat, 6 Aug 2022 21:50:50 -0700 Subject: [PATCH] Fix warning --- mob_meta.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mob_meta.lua b/mob_meta.lua index 301251c..81a9d34 100644 --- a/mob_meta.lua +++ b/mob_meta.lua @@ -165,7 +165,7 @@ local function interp_rad(a, b, w) end local function turn(self, tyaw, rate) - local rate = rate or 5 + rate = rate or 5 local rot = self.object:get_rotation() local yaw = self.object:get_yaw() if not yaw then return end @@ -666,7 +666,7 @@ function mob:set_utility_score(n) self._utility_data.score = n or 0 end -function mob:get_utility_score(n) +function mob:get_utility_score() return (self._utility_data and self._utility_data.score) or 0 end