From a48664b8b3eb5047efa1242bbc7e775518e853d3 Mon Sep 17 00:00:00 2001 From: PrairieAstronomer Date: Thu, 14 Jul 2022 14:15:08 -0600 Subject: [PATCH] Changed mobs to mcl_mobs in some spots --- mods/ENTITIES/mobs_mc/pillager.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/pillager.lua b/mods/ENTITIES/mobs_mc/pillager.lua index bc7aab431f..c0305fa922 100644 --- a/mods/ENTITIES/mobs_mc/pillager.lua +++ b/mods/ENTITIES/mobs_mc/pillager.lua @@ -12,7 +12,7 @@ end local function reset_animation(self, animation) if not self or not self.object or self.current_animation ~= animation then return end self.current_animation = "stand_reload" -- Mobs Redo won't set the animation unless we do this - mobs.set_mob_animation(self, animation) + mcl_mobs.set_mob_animation(self, animation) end pillager = { @@ -135,15 +135,15 @@ pillager = { self.object:set_properties(props) local old_anim = self.current_animation if old_anim == "run" then - mobs.set_mob_animation(self, "reload_run") + mcl_mobs.set_mob_animation(self, "reload_run") end if old_anim == "stand" then - mobs.set_mob_animation(self, "reload_stand") + mcl_mobs.set_mob_animation(self, "reload_stand") end self.current_animation = old_anim -- Mobs Redo will imediately reset the animation otherwise minetest.after(1, reload, self) minetest.after(2, reset_animation, self, old_anim) - mobs.shoot_projectile_handling( + mcl_mobs.shoot_projectile_handling( "mcl_bows:arrow", pos, dir, self.object:get_yaw(), self.object, 30, math.random(3,4))