Fix crash when useing lasso on mob
This commit is contained in:
parent
acbab180f4
commit
63d87154dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user