From 00ac9efc8c029afdc38557886ada4f1b7a434fae Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 2 Jan 2021 20:31:01 +0000 Subject: [PATCH] fix global catch sound (thanks SwissalpS) --- api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api.lua b/api.lua index d219850..a00b16e 100644 --- a/api.lua +++ b/api.lua @@ -8,7 +8,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20201206", + version = "20210102", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -4503,10 +4503,10 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, minetest.add_item(clicker:get_pos(), new_stack) end - remove_mob(self, true) - self:mob_sound("default_place_node_hard") + remove_mob(self, true) + return new_stack -- when chance above fails or set to 0, miss!