mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
nil check
This commit is contained in:
parent
ad2ccc5895
commit
2d1befacb3
2
api.lua
2
api.lua
@ -563,7 +563,7 @@ function mob_class:attempt_flight_correction(override)
|
|||||||
|
|
||||||
-- We are not flying in what we are supposed to.
|
-- We are not flying in what we are supposed to.
|
||||||
-- See if we can find intended flight medium and return to it
|
-- 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
|
local searchnodes = self.fly_in
|
||||||
|
|
||||||
if type(searchnodes) == "string" then
|
if type(searchnodes) == "string" then
|
||||||
|
Loading…
Reference in New Issue
Block a user