Skip to content

Commit

Permalink
Fix the creative trash slot for player 'trash'
Browse files Browse the repository at this point in the history
By using the inventory named just 'trash' instead of 'creative_trash'
which overlaps when you name your player 'trash'.
  • Loading branch information
Montandalar authored and sfan5 committed Oct 23, 2021
1 parent 5273fcb commit 1309953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/creative/inventory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;]
Expand Down

0 comments on commit 1309953

Please sign in to comment.