1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-01-11 18:30:21 +01:00

forgot to revert testing returns, oopsie! fixed!

This commit is contained in:
TenPlus1 2018-12-17 09:17:36 +00:00
parent 70d2f6399d
commit aeb802ad40

10
api.lua
View File

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = { mobs = {
mod = "redo", mod = "redo",
version = "20181209", version = "20181217",
intllib = S, intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}, invis = minetest.global_exists("invisibility") and invisibility or {},
} }
@ -3729,7 +3729,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
minetest.chat_send_player(name, S("Not tamed!")) minetest.chat_send_player(name, S("Not tamed!"))
return true -- false return false
end end
-- cannot pick up if not owner -- cannot pick up if not owner
@ -3738,7 +3738,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
minetest.chat_send_player(name, S("@1 is owner!", self.owner)) minetest.chat_send_player(name, S("@1 is owner!", self.owner))
return true -- false return false
end end
if clicker:get_inventory():room_for_item("main", mobname) then if clicker:get_inventory():room_for_item("main", mobname) then
@ -3807,10 +3807,14 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
mob_sound(self, "default_place_node_hard") mob_sound(self, "default_place_node_hard")
return new_stack
elseif chance ~= 0 then elseif chance ~= 0 then
minetest.chat_send_player(name, S("Missed!")) minetest.chat_send_player(name, S("Missed!"))
mob_sound(self, "mobs_swing") mob_sound(self, "mobs_swing")
return false
end end
end end