mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-27 03:37:31 +01:00
Merge pull request 'Fix incorrect call to gopath for raid due to mobs refactor.' (#3063) from bugfix/raids_crash_gopath into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3063 Reviewed-by: kabou <kabou@noreply.git.minetest.land>
This commit is contained in:
commit
055a93843f
@ -179,7 +179,8 @@ function mcl_raids.spawn_raid(event)
|
|||||||
l.raidmob = true
|
l.raidmob = true
|
||||||
event.health_max = event.health_max + l.health
|
event.health_max = event.health_max + l.health
|
||||||
table.insert(event.mobs,mob)
|
table.insert(event.mobs,mob)
|
||||||
mcl_mobs:gopath(l,pos)
|
--minetest.log("action", "[mcl_raids] Here we go. Raid time")
|
||||||
|
l:gopath(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -11,7 +11,7 @@ local function spawn_zombies(self)
|
|||||||
if check_spawn_pos(p) then
|
if check_spawn_pos(p) then
|
||||||
local m = mcl_mobs.spawn(p,"mobs_mc:zombie")
|
local m = mcl_mobs.spawn(p,"mobs_mc:zombie")
|
||||||
local l = m:get_luaentity()
|
local l = m:get_luaentity()
|
||||||
mcl_mobs:gopath(m:get_luaentity(),self.pos)
|
l:gopath(self.pos)
|
||||||
table.insert(self.mobs,m)
|
table.insert(self.mobs,m)
|
||||||
self.health_max = self.health_max + l.health
|
self.health_max = self.health_max + l.health
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user