From 7b9c1d7349fe7d3c1fc8c57a3ae01872e23fc9a7 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 24 Jun 2026 19:00:39 +0900 Subject: [PATCH] . --- PHI-CL/control/chest.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PHI-CL/control/chest.lua b/PHI-CL/control/chest.lua index 7ccee57..70d032d 100644 --- a/PHI-CL/control/chest.lua +++ b/PHI-CL/control/chest.lua @@ -13,11 +13,11 @@ function main.build(event) local contents = inventory.get_contents() - if not contents or #contents ~= 1 then + if not contents or #contents ~= 1 or not contents[1].name then return end - event.entity.storage_filter = {name = contents[1].name, quality = contents[1].quality} + event.entity.storage_filter = {name = contents[1].name, quality = contents[1].quality or 'normal'} end return main