From 2661fd2735c2e2b4203783bf27d32c16eb92017e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9C=A7=E9=9B=A8=E7=83=A8?= Date: Sat, 15 Jun 2024 09:04:16 +0800 Subject: [PATCH] Fixed the bug that GetItem returns null when the PacksackStack is not empty --- scripts/item/itemStacks/PacksackStack.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/item/itemStacks/PacksackStack.cs b/scripts/item/itemStacks/PacksackStack.cs index a70a22e..0e78007 100644 --- a/scripts/item/itemStacks/PacksackStack.cs +++ b/scripts/item/itemStacks/PacksackStack.cs @@ -45,7 +45,7 @@ public class PacksackStack(Packsack packsack) : IItemStack public IItem? GetItem() { - return Empty ? packsack : null; + return Empty ? null : packsack; } public IItem? PickItem()