From 0964441fb8f510d764e1427ac0330a05f7d326f0 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sat, 31 Aug 2024 16:44:19 -0500 Subject: [PATCH] Add guard that prevents crash when itemstack is nil --- mods/CORE/vl_legacy/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/CORE/vl_legacy/init.lua b/mods/CORE/vl_legacy/init.lua index ca89f799c..cb6c6389c 100644 --- a/mods/CORE/vl_legacy/init.lua +++ b/mods/CORE/vl_legacy/init.lua @@ -18,7 +18,7 @@ function mod.convert_inventory_lists(lists) for _,list in pairs(lists) do for i = 1,#list do local itemstack = list[i] - local conversion = item_conversions[itemstack:get_name()] + local conversion = itemstack and item_conversions[itemstack:get_name()] if conversion then local new_name,func = conversion[1],conversion[2] if func then