diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-04-27 14:00:57 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-04-27 14:00:57 +0100 |
commit | 8deab4025606e2469dc6d28b141abfe586531d70 (patch) | |
tree | 8fe7cf6e120124e36f2afc86466f2fb75adbeb2c /kitten.lua | |
parent | 7eb3bcb7f9d1bb83c0f76ef2728af07d25add52c (diff) |
protect/capture returns added
Diffstat (limited to 'kitten.lua')
-rw-r--r-- | kitten.lua | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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 }) |