Use preview method for unified inventory

I found this during porting the 3d_armor to player_api ;-)
This commit is contained in:
bell07 2018-07-15 19:32:30 +02:00 committed by stujones11
parent c0d45ceaa1
commit 9ce0ed9f55

@ -35,7 +35,7 @@ unified_inventory.register_page("armor", {
local formspec = "background[0.06,"..fy..";7.92,7.52;3d_armor_ui_form.png]"..
"label[0,0;"..F("Armor").."]"..
"list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"..
"image[2.5,"..(fy - 0.25)..";2,4;"..armor.textures[name].preview.."]"..
"image[2.5,"..(fy - 0.25)..";2,4;"..armor:get_preview(name).."]"..
"label[5.0,"..(fy + 0.0)..";"..F("Level")..": "..armor.def[name].level.."]"..
"label[5.0,"..(fy + 0.5)..";"..F("Heal")..": "..armor.def[name].heal.."]"..
"listring[current_player;main]"..