mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix an odd notplayer crash
This commit is contained in:
parent
cfa3889aca
commit
3847492f56
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ local function get_potions_of_type(type)
|
|||
local mat = EntityGetFirstComponent(item, "MaterialInventoryComponent")
|
||||
local materials = ComponentGetValue2(mat, "count_per_material_type")
|
||||
local total = 0
|
||||
for id, amt in pairs(materials) do
|
||||
for id, amt in pairs(materials or {}) do
|
||||
if amt ~= 0 then
|
||||
local name = CellFactory_GetName(id - 1)
|
||||
local use = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue