From 63d87154dc9807145909321bbda68c75f462cd71 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 9 Mar 2021 02:06:36 +0100 Subject: [PATCH] Fix crash when useing lasso on mob --- mods/mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index 4af2ffd..702bcfc 100644 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -1705,8 +1705,8 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso, -- Cuccessful capture.. add to inventory clicker:get_inventory():add_item("main", mobname) - self.object:remove() minetest.log("action", "[mobs] Mob "..self.name.." captured at "..minetest.pos_to_string(vector.round(self.object:get_pos()))) + self.object:remove() achievements.trigger_achievement(clicker, "ranger") return