diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-01 13:08:45 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-01 13:08:45 +0000 |
commit | 62d00489b3cc224a2fff42b0a7e9b7a25b07d5a2 (patch) | |
tree | 06920ebb9f20c4e5da3e8599f5eaf41c00d0e387 /api.lua | |
parent | 6d059ef9803b691e3d0e4ebba94d79ebd9d4cd94 (diff) |
changed capturing mobs with 'replacewith' item to override new mob eggs with information inside
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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") |