Use preview method for unified inventory

I found this during porting the 3d_armor to player_api ;-)
axinite
bell07 2018-07-15 19:32:30 +02:00 committed by Peppy
parent c71b062dbb
commit 8d01a55bf8
1 changed files with 1 additions and 1 deletions

View File

@ -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]"..