Better argument documentation

Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
Oversword 2021-10-11 22:33:24 +01:00 committed by GitHub
parent f6fd709e93
commit cc7947cd18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ Register a callback that will be run whenever a craft is registered via unified_
unified_inventory.register_on_craft_registered(
callback = function(item_name, options) ... end
-- The first argument passed to the callback will be the name of the item with no count (e.g. "default:stone 10" > "default:stone")
-- The second argument will be the options passed in to the original unified_inventory.register_craft(options) function call
-- item_name (string): equivalent to `ItemStack:get_name()`
-- options (table): definition table of crafts registered by `unified_inventory.register_craft`
)
Register a callback that will be run after all mods have loaded and after the unified_inventory mod has initialised all its internal structures: