diff --git a/API.md b/API.md index 7aa0379..251afd5 100644 --- a/API.md +++ b/API.md @@ -5,6 +5,9 @@ Custom recipes are nonconventional crafts outside the main crafting grid. They can be registered in-game dynamically and have a size beyond 3x3 items. +**Note:** the registration format differs from the default registration format in everything. +The width is automatically calculated depending where you place the commas. Look at the examples attentively. + #### Registering a custom crafting type (example) ```Lua @@ -77,7 +80,7 @@ craftguide.register_craft({ }) ``` -Recipes can be registered via an URL (HTTP support is required¹): +Recipes can be registered from a given URL containing a JSON file (HTTP support is required¹): ```Lua craftguide.register_craft({ diff --git a/init.lua b/init.lua index 896f5b4..0301f8c 100644 --- a/init.lua +++ b/init.lua @@ -121,7 +121,6 @@ local function msg(name, str) return chat_send(name, fmt("[craftguide] %s", clr("#FFFF00", str))) end - local function is_str(x) return type(x) == "string" end