|
@@ -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 {},
|
|
}
|
|
}
|
|
@@ -3771,7 +3771,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
|
|
@@ -3780,7 +3780,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
|
|
@@ -3849,10 +3849,13 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
|
|
|
|
|
|
self:mob_sound("default_place_node_hard")
|
|
self:mob_sound("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!"))
|
|
|
|
|
|
self:mob_sound("mobs_swing")
|
|
self:mob_sound("mobs_swing")
|
|
|
|
+ return false
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|