mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-15 04:11:25 +00:00
Fix maybe idk
This commit is contained in:
parent
56d5e39873
commit
135383fbfa
1 changed files with 4 additions and 4 deletions
|
@ -236,9 +236,9 @@ creatura.register_mob("animalia:wolf", {
|
|||
end,
|
||||
deactivate_func = function(self)
|
||||
if self.owner then
|
||||
for i = 1, #animalia.pets[self.owner] do
|
||||
if animalia.pets[self.owner][i] == self.object then
|
||||
animalia.pets[self.owner][i] = nil
|
||||
for i, object in ipairs(animalia.pets[self.owner]) do
|
||||
if object == self.object then
|
||||
animalia.pets[self.owner][i]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -250,4 +250,4 @@ creatura.register_mob("animalia:wolf", {
|
|||
end
|
||||
})
|
||||
|
||||
creatura.register_spawn_egg("animalia:wolf", "a19678" ,"231b13")
|
||||
creatura.register_spawn_egg("animalia:wolf", "a19678" ,"231b13")
|
||||
|
|
Loading…
Add table
Reference in a new issue