mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
dont send file name-less game effects
This commit is contained in:
parent
1f3382dace
commit
0e103b3d80
1 changed files with 7 additions and 5 deletions
|
@ -41,11 +41,13 @@ function effect_sync.get_sync_data(entity)
|
||||||
local sync_data = {}
|
local sync_data = {}
|
||||||
for _, effect in ipairs(effects) do
|
for _, effect in ipairs(effects) do
|
||||||
local name = EntityGetFilename(effect)
|
local name = EntityGetFilename(effect)
|
||||||
local num = name_to_num(name)
|
if name ~= nil and name ~= "" then --TODO serialize effects with no file
|
||||||
if num ~= -1 then
|
local num = name_to_num(name)
|
||||||
table.insert(sync_data, num)
|
if num ~= -1 then
|
||||||
else
|
table.insert(sync_data, num)
|
||||||
table.insert(sync_data, name)
|
else
|
||||||
|
table.insert(sync_data, name)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return sync_data
|
return sync_data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue