mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2025-07-26 12:00:21 +02:00
protect/capture returns added
This commit is contained in:
@ -168,10 +168,10 @@ for _, col in ipairs(all_colours) do
|
||||
end
|
||||
|
||||
-- protect mod with mobs:protector item
|
||||
mobs:protect(self, clicker)
|
||||
if mobs:protect(self, clicker) then return end
|
||||
|
||||
--are we capturing?
|
||||
mobs:capture_mob(self, clicker, 0, 5, 60, false, nil)
|
||||
if mobs:capture_mob(self, clicker, 0, 5, 60, false, nil) then return end
|
||||
end
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user