summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api.lua4
-rw-r--r--api.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/api.lua b/api.lua
index 05732c1..ed2deb7 100644
--- a/api.lua
+++ b/api.lua
@@ -3166,8 +3166,8 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
local new_stack = ItemStack(mobname)
-- add special mob egg with all mob information
- -- unless 'force_take' is true for craftitems only
- if not force_take then
+ -- unless 'replacewith' contains new item to use
+ if not replacewith then
new_stack = ItemStack(mobname .. "_set")
diff --git a/api.txt b/api.txt
index 21a778e..bfcf012 100644
--- a/api.txt
+++ b/api.txt
@@ -235,7 +235,7 @@ This function is generally called inside the on_rightclick section of the mob ap
'chance_net' chance of capturing mob using net (1 to 100) 0 to disable
'chance_lasso' chance of capturing mob using magic lasso (1 to 100) 0 to disable
'force_take' take mob by force, even if tamed (true or false)
- 'replacewith' once captured replace mob with this item instead
+ 'replacewith' once captured replace mob with this item instead (overrides new mob eggs with saved information)
mobs:feed_tame(self, clicker, feed_count, breed)