mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 07:20:31 +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.state ~= "attack" then
|
||||
local s = self.object:getpos()
|
||||
local p, dist
|
||||
local obj = nil
|
||||
for _, oir in pairs(minetest.get_objects_inside_radius(s,self.view_range)) do
|
||||
obj = oir:get_luaentity()
|
||||
|
|
Loading…
Reference in New Issue
Block a user