From 2d1befacb33cfdefbe42bc9ae3df0aa48c1fb68c Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 19 Jan 2021 20:37:42 +0000 Subject: [PATCH] nil check --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 2659681..1d9e9af 100644 --- a/api.lua +++ b/api.lua @@ -563,7 +563,7 @@ function mob_class:attempt_flight_correction(override) -- We are not flying in what we are supposed to. -- See if we can find intended flight medium and return to it - local pos = self.object:get_pos() + local pos = self.object:get_pos() ; if not pos then return true end local searchnodes = self.fly_in if type(searchnodes) == "string" then