From 437e3406c6fdd8404e6489f2f750d3775e73d4d9 Mon Sep 17 00:00:00 2001 From: SilverSokolova <80606782+SilverSokolova@users.noreply.github.com> Date: Tue, 17 Feb 2026 21:20:20 -0600 Subject: [PATCH] Don't add item files if they aren't actually items Apparently just have object and item files that are neither objects nor items, and Starbound is just totally fine with that instead of crashing like it should --- scripts/sip_postload.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sip_postload.lua b/scripts/sip_postload.lua index 15421b0..c2f241b 100644 --- a/scripts/sip_postload.lua +++ b/scripts/sip_postload.lua @@ -49,7 +49,7 @@ for _, value in pairs(files) do if valid then if itemData["hasObjectItem"] ~= false then local itemName = itemData.objectName or itemData.itemName or (itemData.id and itemData.id.."-codex") - if not addedItems[itemName] then + if itemName and not addedItems[itemName] then addedItems[itemName] = true local rarity = (itemData.rarity or "common"):lower() @@ -93,4 +93,4 @@ end) local path = "/interface/sip/unsortedItemCategory.patch" assets.add(path, assets.json("/interface/sip/sip.config:unsortedItemCategory")) assets.patch("/interface/sip/categories.config", path) -assets.add("/sipDynamicItemDump.json", result) \ No newline at end of file +assets.add("/sipDynamicItemDump.json", result)