mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-24 17:50:21 +01:00
nill check for follow_flop
This commit is contained in:
parent
4814f53885
commit
c4f56f4204
2
api.lua
2
api.lua
@ -2001,7 +2001,7 @@ function mob_class:follow_flop()
|
|||||||
and self.state ~= "attack"
|
and self.state ~= "attack"
|
||||||
and self.state ~= "runaway" then
|
and self.state ~= "runaway" then
|
||||||
|
|
||||||
local s = self.object:get_pos()
|
local s = self.object:get_pos() ; if not s then return end
|
||||||
local players = minetest.get_connected_players()
|
local players = minetest.get_connected_players()
|
||||||
|
|
||||||
for n = 1, #players do
|
for n = 1, #players do
|
||||||
|
Loading…
Reference in New Issue
Block a user