mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
fix local var
This commit is contained in:
parent
f2c7377a11
commit
e31c510563
@ -455,6 +455,7 @@ function mobs:register_mob(name, def)
|
|||||||
and self.attacks_monsters
|
and self.attacks_monsters
|
||||||
and self.state ~= "attack" then
|
and self.state ~= "attack" then
|
||||||
local s = self.object:getpos()
|
local s = self.object:getpos()
|
||||||
|
local p, dist
|
||||||
local obj = nil
|
local obj = nil
|
||||||
for _, oir in pairs(minetest.get_objects_inside_radius(s,self.view_range)) do
|
for _, oir in pairs(minetest.get_objects_inside_radius(s,self.view_range)) do
|
||||||
obj = oir:get_luaentity()
|
obj = oir:get_luaentity()
|
||||||
|
Loading…
Reference in New Issue
Block a user