mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-21 15:21:22 +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,
|
end,
|
||||||
deactivate_func = function(self)
|
deactivate_func = function(self)
|
||||||
if self.owner then
|
if self.owner then
|
||||||
for i = 1, #animalia.pets[self.owner] do
|
for i, object in ipairs(animalia.pets[self.owner]) do
|
||||||
if animalia.pets[self.owner][i] == self.object then
|
if object == self.object then
|
||||||
animalia.pets[self.owner][i] = nil
|
animalia.pets[self.owner][i]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -250,4 +250,4 @@ creatura.register_mob("animalia:wolf", {
|
||||||
end
|
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