From f123e5fe04177160aec24739c4d5c95c8e5e64b0 Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Fri, 7 Apr 2023 14:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E7=82=89=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua index 3f5a1c3667..63ca4ad974 100644 --- a/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua @@ -199,7 +199,9 @@ function this.ResetBtnOnClick() if matrs then for i = 1, #matrs do local mat=matrs[i] - table.insert(allMaterials,{mat[1],mat[2]}) + if mat[2]>0 then + table.insert(allMaterials,{mat[1],mat[2]}) + end end end end