diff --git a/itemcontroller.lua b/itemcontroller.lua index fb81e49..111650a 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -71,7 +71,8 @@ end local accessNode = Chest:fromPeripheral("minecraft:trapped_chest", true) -local controller = loadState(CACHE_FILE, accessNode) +---@diagnostic disable-next-line: need-check-nil +local controller = loadState(CACHE_FILE, accessNode:getInventory()) local monitor = peripheral.find("monitor") local width, height = monitor.getSize()