From 3c1355b13e90cc5b483d3637821db5535b8df860 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 21 Nov 2021 22:47:46 +0100 Subject: [PATCH] Re-upload a new screenshot --- README.md | 2 +- src/gui.lua | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 923ffcd..10aebf6 100644 --- a/README.md +++ b/README.md @@ -50,4 +50,4 @@ The `i3` inventory is 9 slots wide by default, such as Minecraft. Report bugs on the [**Bug Tracker**](https://github.com/minetest-mods/i3/issues). -![Preview](https://user-images.githubusercontent.com/7883281/142774384-8551ccce-704f-48d5-a992-f82746a318f0.png) +![Preview](https://user-images.githubusercontent.com/7883281/142780121-564c1969-b95b-4cc9-99df-9f2362c67e07.png) diff --git a/src/gui.lua b/src/gui.lua index e9d66c1..c203dca 100644 --- a/src/gui.lua +++ b/src/gui.lua @@ -733,7 +733,7 @@ local function get_output_fs(fs, data, rcp, is_recipe, shapeless, right, btn_siz local _name = fmt("_%s", name) local pos - if meta:get_string("color") ~= "" or meta:get_string("palette_index") ~= "" then + if meta:get_string"color" ~= "" or meta:get_string"palette_index" ~= "" then local rcp_usg = is_recipe and "rcp" or "usg" fs(fmt("style_type[list;size=%f]", i3.ITEM_BTN_SIZE)) @@ -762,8 +762,8 @@ local function get_output_fs(fs, data, rcp, is_recipe, shapeless, right, btn_siz local weird = name ~= "" and desc and weird_desc(desc) or nil local burntime = i3.fuel_cache[name] and i3.fuel_cache[name].burntime - local short_desc = meta:get_string("short_description") - local long_desc = meta:get_string("description") + local short_desc = meta:get_string"short_description" + local long_desc = meta:get_string"description" local meta_desc = (short_desc ~= "" and short_desc) or (long_desc ~= "" and long_desc) local infos = { @@ -889,8 +889,8 @@ local function get_grid_fs(fs, data, rcp, is_recipe) local weird = name ~= "" and desc and weird_desc(desc) or nil local burntime = i3.fuel_cache[name] and i3.fuel_cache[name].burntime - local short_desc = meta:get_string("short_description") - local long_desc = meta:get_string("description") + local short_desc = meta:get_string"short_description" + local long_desc = meta:get_string"description" local meta_desc = (short_desc ~= "" and short_desc) or (long_desc ~= "" and long_desc) or nil local infos = {