summaryrefslogtreecommitdiff
path: root/kitten.lua
diff options
context:
space:
mode:
Diffstat (limited to 'kitten.lua')
-rw-r--r--kitten.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/kitten.lua b/kitten.lua
index e2fb922..adea21b 100644
--- a/kitten.lua
+++ b/kitten.lua
@@ -45,12 +45,9 @@ mobs:register_mob("mobs_animal:kitten", {
view_range = 8,
on_rightclick = function(self, clicker)
- if mobs:feed_tame(self, clicker, 4, true, true) then
- return
- end
-
- mobs:protect(self, clicker)
- mobs:capture_mob(self, clicker, 50, 50, 90, false, nil)
+ if mobs:feed_tame(self, clicker, 4, true, true) then return end
+ if mobs:protect(self, clicker) then return end
+ if mobs:capture_mob(self, clicker, 50, 50, 90, false, nil) then return end
end
})