summaryrefslogtreecommitdiff
path: root/penguin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'penguin.lua')
-rw-r--r--penguin.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/penguin.lua b/penguin.lua
index b7748ed..278a6ff 100644
--- a/penguin.lua
+++ b/penguin.lua
@@ -50,12 +50,9 @@ mobs:register_mob("mobs_animal:penguin", {
on_rightclick = function(self, clicker)
-- feed or tame
- if mobs:feed_tame(self, clicker, 4, false, true) then
- return
- end
-
- mobs:protect(self, clicker)
- mobs:capture_mob(self, clicker, 5, 50, 80, false, nil)
+ if mobs:feed_tame(self, clicker, 4, false, true) then return end
+ if mobs:protect(self, clicker) then return end
+ if mobs:capture_mob(self, clicker, 5, 50, 80, false, nil) then return end
end,
})