From 5446e0dbddafefac7bc3b90506d2415f4faf4b56 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Fri, 4 Oct 2019 00:29:42 +0200 Subject: [PATCH] Update README + API --- API.md | 11 ----------- README.md | 2 +- init.lua | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/API.md b/API.md index 519cc03..7e490c9 100644 --- a/API.md +++ b/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 = "#" - -``` - -`middle` (number) refers to a 9-sliced background. Read the engine's Lua API documentation for more info. diff --git a/README.md b/README.md index f28905a..135906c 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/init.lua b/init.lua index 0c430e2..8e60293 100644 --- a/init.lua +++ b/init.lua @@ -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)