mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-26 10:40:37 +01:00
fix previews of enchanted armor with xdecor
This commit is contained in:
parent
814f5f2bc4
commit
7ce1871ef8
@ -181,6 +181,11 @@ armor.set_player_armor = function(self, player)
|
||||
local level = def.groups["armor_"..k]
|
||||
if level then
|
||||
local texture = item:gsub("%:", "_")
|
||||
if texture:find("enchanted") then --MFF xdecor enchanting preview fix
|
||||
texture = texture:gsub("_enchanted", "")
|
||||
texture = texture:gsub("_strong", "")
|
||||
texture = texture:gsub("_speed", "")
|
||||
end
|
||||
table.insert(textures, texture..".png")
|
||||
if preview == "" then
|
||||
preview = texture .. "_preview.png"
|
||||
|
Loading…
Reference in New Issue
Block a user