mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-23 17:20:22 +01:00
fix global catch sound (thanks SwissalpS)
This commit is contained in:
parent
bf32a09e5e
commit
00ac9efc8c
6
api.lua
6
api.lua
@ -8,7 +8,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20201206",
|
version = "20210102",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
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)
|
minetest.add_item(clicker:get_pos(), new_stack)
|
||||||
end
|
end
|
||||||
|
|
||||||
remove_mob(self, true)
|
|
||||||
|
|
||||||
self:mob_sound("default_place_node_hard")
|
self:mob_sound("default_place_node_hard")
|
||||||
|
|
||||||
|
remove_mob(self, true)
|
||||||
|
|
||||||
return new_stack
|
return new_stack
|
||||||
|
|
||||||
-- when chance above fails or set to 0, miss!
|
-- when chance above fails or set to 0, miss!
|
||||||
|
Loading…
Reference in New Issue
Block a user