From 01f34843e8fa66807fc27d9f9bf1a7d48b13df56 Mon Sep 17 00:00:00 2001 From: chenxi Date: Wed, 26 Apr 2023 15:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E5=8A=9B=E4=B8=8A=E9=99=90=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/currency_bar/cell/currency_cell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/app/ui/currency_bar/cell/currency_cell.lua b/lua/app/ui/currency_bar/cell/currency_cell.lua index b7b5c1f6..4e1cdad1 100644 --- a/lua/app/ui/currency_bar/cell/currency_cell.lua +++ b/lua/app/ui/currency_bar/cell/currency_cell.lua @@ -72,7 +72,7 @@ function ResourceCell:refreshTextRightNow() local count = obj:getNum() if count < 0 then self.numTx:setText("0") - elseif obj:getItemType() == GConst.ItemConst.ITEM_ID_VIT then + elseif obj:getId() == GConst.ItemConst.ITEM_ID_VIT then self.numTx:setText(GFunc.num2Str(count) .. "/" .. DataManager.PlayerData:getMaxVit()) else self.numTx:setText(GFunc.num2Str(count))