Skip to content

Commit

Permalink
fix global catch sound (thanks SwissalpS)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenplus1 committed Jan 2, 2021
1 parent bf32a09 commit 00ac9ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}
Expand Down Expand Up @@ -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!
Expand Down

0 comments on commit 00ac9ef

Please sign in to comment.