fix mcl_mobs api_changes

This commit is contained in:
cora 2022-05-28 00:06:29 +02:00
parent c0a9cb7020
commit 7bc63d2882
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ local function perch(self,player)
local shoulder = get_shoulder(player) local shoulder = get_shoulder(player)
if not shoulder then return true end if not shoulder then return true end
self.object:set_attach(player,"",shoulder,vector.new(0,0,0),true) self.object:set_attach(player,"",shoulder,vector.new(0,0,0),true)
mobs:set_animation(self, "stand") mcl_mobs:set_animation(self, "stand")
end end
end end
@ -154,7 +154,7 @@ mcl_mobs:register_mob("mobs_mc:parrot", {
return return
end end
-- Feed to tame, but not breed -- Feed to tame, but not breed
if mobs:feed_tame(self, clicker, 1, false, true) then return end if mcl_mobs:feed_tame(self, clicker, 1, false, true) then return end
perch(self,clicker) perch(self,clicker)
end, end,
do_custom = function(self,dtime) do_custom = function(self,dtime)