forked from mtcontrib/mobs_redo
changed capturing mobs with 'replacewith' item to override new mob eggs with information inside
This commit is contained in:
4
api.lua
4
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")
|
||||
|
||||
|
Reference in New Issue
Block a user