Skip to content
Snippets Groups Projects
Commit 1309953d authored by Montandalar's avatar Montandalar Committed by sfan5
Browse files

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'.
parent 5273fcb3
No related branches found
No related tags found
No related merge requests found
......@@ -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;]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment