diff --git a/PHI-CL/control/chest.lua b/PHI-CL/control/chest.lua index 5be6d22..8fd9fe5 100644 --- a/PHI-CL/control/chest.lua +++ b/PHI-CL/control/chest.lua @@ -1,15 +1,7 @@ local main = {} function main.build(event) - if event.entity.type ~= 'logistic-container' then - return - end - - if event.entity.logistic_mode ~= 'storage' then - return - end - - if not event.entity.has_items_inside() then + if event.entity.type ~= 'logistic-container' or not event.entity.logistic_mode or event.entity.logistic_mode ~= 'storage' then return end