From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Wed, 1 Jul 2020 09:40:37 +0000 (-0400) Subject: Fix toomanyitems reusing data X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=2ae3e7660cf440739e0b77ee6daa9942e95a170c;p=Crafter.git Fix toomanyitems reusing data --- diff --git a/mods/too_many_items/init.lua b/mods/too_many_items/init.lua index 8034759..b799782 100644 --- a/mods/too_many_items/init.lua +++ b/mods/too_many_items/init.lua @@ -108,11 +108,12 @@ end local base_x = 0.75 local base_y = -0.5 -local output = +local output_constant = "listcolors[#8b8a89;#c9c3c6;#3e3d3e;#000000;#FFFFFF]".. "list[current_player;main;0,4.5;9,1;]".. --hot bar "list[current_player;main;0,6;9,3;9]".. --main inventory "button[5,3.5;1,1;toomanyitems.back;back]" --back button +local output local recipe local usable_recipe local function create_craft_formspec(item) @@ -124,6 +125,8 @@ local function create_craft_formspec(item) recipe = minetest.get_craft_recipe(item) usable_table = recipe_converter(recipe.items, recipe.width) + + output = output_constant if recipe.method == "normal" then if usable_table then