mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2025-06-30 07:20:39 +02:00
Draw the trash slot by overlaying the bare trash can icon
over the single slot image instead of baking it in.
This commit is contained in:
6
bags.lua
6
bags.lua
@ -74,9 +74,9 @@ for bag_i = 1, 4 do
|
||||
if ui.trash_enabled
|
||||
or ui.is_creative(player_name)
|
||||
or minetest.get_player_privs(player_name).give then
|
||||
formspec[n] = "image[7.8,0.25;"..ui.imgscale..","..ui.imgscale..";ui_trash_slot.png]"
|
||||
.. "list[detached:trash;main;7.95,0.25;1,1;]"
|
||||
n = n + 1
|
||||
formspec[n] = "image[7.8,0.25;"..ui.trash_slot_img.."]"
|
||||
formspec[n+1] = "list[detached:trash;main;7.95,0.25;1,1;]"
|
||||
n = n + 2
|
||||
end
|
||||
local inv = player:get_inventory()
|
||||
for i = 1, 4 do
|
||||
|
Reference in New Issue
Block a user