1
0
Fork 0

Remove some unused images in crafting inventory

This commit is contained in:
Wuzzy 2017-02-17 02:07:18 +01:00
parent 7c62448ffd
commit 0e110f6831
7 changed files with 3 additions and 20 deletions

View File

@ -32,24 +32,7 @@ end
local player_armor = {} local player_armor = {}
local function update_armor(player) local function update_armor(player)
local out = "" return
if not player then return end
local name = player:get_player_name()
if not armor or not armor.textures then return end
local armor_str = armor.textures[name].armor
if string.find(armor_str, "leggings") then
out = out .. "^crafting_armor_legs.png"
end
if string.find(armor_str, "boots") then
out = out .. "^crafting_armor_boots.png"
end
if string.find(armor_str, "helmet") then
out = out .. "^crafting_armor_helmet.png"
end
if string.find(armor_str, "chestplate") then
out = out .. "^crafting_armor_chest.png"
end
player_armor[name] = out
end end
local function set_inventory(player) local function set_inventory(player)
@ -61,10 +44,10 @@ local function set_inventory(player)
player:get_inventory():set_size("craft", 4) player:get_inventory():set_size("craft", 4)
local player_name = player:get_player_name() local player_name = player:get_player_name()
local img = "crafting_inventory_player.png" local img = "crafting_player2d.png"
local armor_img = "" local armor_img = ""
if show_armor then if show_armor then
armor_img = "^crafting_inventory_armor.png" armor_img = ""
if player_armor[player_name] ~= nil then if player_armor[player_name] ~= nil then
img = img .. player_armor[player_name] img = img .. player_armor[player_name]
end end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB