forked from mtcontrib/mobs_animal
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