Update README + API

This commit is contained in:
Jean-Patrick Guerrero 2019-10-04 00:29:42 +02:00
parent 16ceea1aaf
commit 5446e0dbdd
3 changed files with 2 additions and 13 deletions

11
API.md

@ -168,14 +168,3 @@ You can add a stereotype like so:
```Lua
craftguide.group_stereotypes.radioactive = "mod:item"
```
#### `craftguide.background`
You can set a custom background theme by overriding this variable:
```Lua
craftguide.background = "<file_name.png>#<middle>"
```
`middle` (number) refers to a 9-sliced background. Read the engine's Lua API documentation for more info.

@ -19,4 +19,4 @@ For developers, `craftguide` also has a [modding API](https://github.com/minetes
Love this mod? Donations are appreciated: https://www.paypal.me/jpg84240
![Preview2](https://i.imgur.com/IbexMwQ.png)
![Preview2](https://i.imgur.com/GVQvufb.png)

@ -1791,7 +1791,7 @@ register_command("craft", {
end
if not node_name then
return false, clr("red", "[craftguide] ") .. S("No node pointed")
return false, msg(name, S("No node pointed"))
end
return true, craftguide.show(name, node_name)