From 8deab4025606e2469dc6d28b141abfe586531d70 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 27 Apr 2017 14:00:57 +0100 Subject: protect/capture returns added --- sheep.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sheep.lua') diff --git a/sheep.lua b/sheep.lua index 8637ef7..4cd6506 100644 --- a/sheep.lua +++ b/sheep.lua @@ -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 }) -- cgit v1.2.3