protect/capture returns added

This commit is contained in:
TenPlus1
2017-04-27 14:00:57 +01:00
parent 7eb3bcb7f9
commit 8deab40256
7 changed files with 20 additions and 38 deletions

View File

@ -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
})