From 1309953da6b316c7b36e5335feea843c5fa2168d Mon Sep 17 00:00:00 2001 From: Montandalar Date: Sat, 7 Aug 2021 10:11:18 +1000 Subject: [PATCH] Fix the creative trash slot for player 'trash' By using the inventory named just 'trash' instead of 'creative_trash' which overlaps when you name your player 'trash'. --- mods/creative/inventory.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/creative/inventory.lua b/mods/creative/inventory.lua index 46da80a1..1f9a1d50 100644 --- a/mods/creative/inventory.lua +++ b/mods/creative/inventory.lua @@ -125,7 +125,7 @@ function creative.update_creative_inventory(player_name, tab_content) end -- Create the trash field -local trash = minetest.create_detached_inventory("creative_trash", { +local trash = minetest.create_detached_inventory("trash", { -- Allow the stack to be placed and remove it in on_put() -- This allows the creative inventory to restore the stack allow_put = function(inv, listname, index, stack, player) @@ -157,7 +157,7 @@ function creative.register_tab(name, title, items) [[ image[4.08,4.2;0.8,0.8;creative_trash_icon.png] listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF] - list[detached:creative_trash;main;4.02,4.1;1,1;] + list[detached:trash;main;4.02,4.1;1,1;] listring[] image_button[5,4.05;0.8,0.8;creative_prev_icon.png;creative_prev;] image_button[7.2,4.05;0.8,0.8;creative_next_icon.png;creative_next;]