From 2b52eaa6ef42d51a300a97d6399b40529cef4dd1 Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Sun, 4 Dec 2022 22:34:31 +0000 Subject: [PATCH 1/2] Fix incorrect call to gopath for raid due to mobs refactor. --- mods/ENVIRONMENT/mcl_raids/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ENVIRONMENT/mcl_raids/init.lua b/mods/ENVIRONMENT/mcl_raids/init.lua index 5a4575670..f96e90c8e 100644 --- a/mods/ENVIRONMENT/mcl_raids/init.lua +++ b/mods/ENVIRONMENT/mcl_raids/init.lua @@ -179,7 +179,8 @@ function mcl_raids.spawn_raid(event) l.raidmob = true event.health_max = event.health_max + l.health 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 From a3cded01337ca6acfe660c610ed43ac66ce2fea2 Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Mon, 5 Dec 2022 00:13:49 +0000 Subject: [PATCH 2/2] Fix zombie siege calling gopath incorrectly --- mods/ENVIRONMENT/mcl_zombie_sieges/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENVIRONMENT/mcl_zombie_sieges/init.lua b/mods/ENVIRONMENT/mcl_zombie_sieges/init.lua index 8a43b0e7e..bf6e17dfa 100644 --- a/mods/ENVIRONMENT/mcl_zombie_sieges/init.lua +++ b/mods/ENVIRONMENT/mcl_zombie_sieges/init.lua @@ -11,7 +11,7 @@ local function spawn_zombies(self) if check_spawn_pos(p) then local m = mcl_mobs.spawn(p,"mobs_mc:zombie") local l = m:get_luaentity() - mcl_mobs:gopath(m:get_luaentity(),self.pos) + l:gopath(self.pos) table.insert(self.mobs,m) self.health_max = self.health_max + l.health end