summaryrefslogtreecommitdiff
path: root/chicken.lua
diff options
context:
space:
mode:
Diffstat (limited to 'chicken.lua')
-rw-r--r--chicken.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/chicken.lua b/chicken.lua
index 6c57cd0..7ab6f41 100644
--- a/chicken.lua
+++ b/chicken.lua
@@ -52,12 +52,9 @@ mobs:register_mob("mobs_animal:chicken", {
on_rightclick = function(self, clicker)
- if mobs:feed_tame(self, clicker, 8, true, true) then
- return
- end
-
- mobs:protect(self, clicker)
- mobs:capture_mob(self, clicker, 30, 50, 80, false, nil)
+ if mobs:feed_tame(self, clicker, 8, true, true) then return end
+ if mobs:protect(self, clicker) then return end
+ if mobs:capture_mob(self, clicker, 30, 50, 80, false, nil) then return end
end,
do_custom = function(self, dtime)