diff --git a/api/behaviors.lua b/api/behaviors.lua index 8493603..2c7d5b4 100644 --- a/api/behaviors.lua +++ b/api/behaviors.lua @@ -196,7 +196,7 @@ creatura.register_movement_method("draconis:fly_simple", function(self) local steer_to local steer_timer = 0.25 local width = self.width - local wayp_threshold = width + (width / self.turn_rate) + local wayp_threshold = width + (width / (self.turn_rate or 6)) self:set_gravity(0) local function func(_self, goal, speed_factor)