1
0
Fork 0

Changed mobs to mcl_mobs in some spots

This commit is contained in:
PrairieAstronomer 2022-07-14 14:15:08 -06:00 committed by cora
parent d7e950ab7b
commit a48664b8b3
1 changed files with 4 additions and 4 deletions

View File

@ -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))