From a124e870c7217373f994a31b0f4b5dd078082f44 Mon Sep 17 00:00:00 2001
From: Gabriel Tofvesson <gabriel@tofvesson.se>
Date: Thu, 3 Oct 2024 16:57:14 +0200
Subject: [PATCH] Call isEmpty() on object, not serializable

---
 storage/chest.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storage/chest.lua b/storage/chest.lua
index c3c6c1b..cc2836d 100644
--- a/storage/chest.lua
+++ b/storage/chest.lua
@@ -65,7 +65,7 @@ function Chest:toSerializable()
     local stackSer = v:toSerializable()
 
     -- Skip all but the first homogeneous slot
-    if stackSer:isEmpty() then
+    if v:isEmpty() then
         if skipEmpty then
             goto continue
         end