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 = {}
|
||||
for _, effect in ipairs(effects) do
|
||||
local name = EntityGetFilename(effect)
|
||||
local num = name_to_num(name)
|
||||
if num ~= -1 then
|
||||
table.insert(sync_data, num)
|
||||
else
|
||||
table.insert(sync_data, name)
|
||||
if name ~= nil and name ~= "" then --TODO serialize effects with no file
|
||||
local num = name_to_num(name)
|
||||
if num ~= -1 then
|
||||
table.insert(sync_data, num)
|
||||
else
|
||||
table.insert(sync_data, name)
|
||||
end
|
||||
end
|
||||
end
|
||||
return sync_data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue