From f3c46f2668e3d454e6d267f96841643f10f7daa8 Mon Sep 17 00:00:00 2001 From: Cold-Mint Date: Thu, 10 Oct 2024 10:53:13 +0800 Subject: [PATCH] =?UTF-8?q?Fixed=20an=20issue=20where=20items=20would=20no?= =?UTF-8?q?t=20be=20lost=20after=20player=20death.=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E6=AD=BB=E4=BA=A1=E5=90=8E=E7=89=A9=E5=93=81?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E4=B8=A2=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/character/CharacterTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/character/CharacterTemplate.cs b/scripts/character/CharacterTemplate.cs index fd163ad..cffcc91 100644 --- a/scripts/character/CharacterTemplate.cs +++ b/scripts/character/CharacterTemplate.cs @@ -721,7 +721,7 @@ public partial class CharacterTemplate : CharacterBody2D return; } - var len = ItemContainer.GetUsedCapacity(); + var len = ItemContainer.GetTotalCapacity(); if (len == 0) { return;