Fixed an issue where items would not be lost after player death.

修复玩家死亡后物品不会丢失的问题。
This commit is contained in:
Cold-Mint 2024-10-10 10:53:13 +08:00
parent 88813fe837
commit f3c46f2668
Signed by: Cold-Mint
GPG Key ID: C5A9BF8A98E0CE99

View File

@ -721,7 +721,7 @@ public partial class CharacterTemplate : CharacterBody2D
return;
}
var len = ItemContainer.GetUsedCapacity();
var len = ItemContainer.GetTotalCapacity();
if (len == 0)
{
return;