mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
dont try to sync file-less entities
This commit is contained in:
parent
44464947f7
commit
1ac29cd26f
2 changed files with 13 additions and 13 deletions
|
@ -363,7 +363,8 @@ impl EntityID {
|
|||
if let Ok(file) = ent.filename() {
|
||||
if !file.is_empty() {
|
||||
effects.push((GameEffectData::Custom(file), ent))
|
||||
} else if let Ok(data) = serialize::serialize_entity(ent) {
|
||||
}
|
||||
} /* else if let Ok(data) = serialize::serialize_entity(ent) {
|
||||
let n = ent.filename().unwrap_or(String::new());
|
||||
effects.push((GameEffectData::Projectile((n, data)), ent))
|
||||
}
|
||||
|
@ -375,7 +376,7 @@ impl EntityID {
|
|||
GameEffectData::Projectile((format!("{}{}", n, num), data)),
|
||||
ent,
|
||||
))
|
||||
}
|
||||
}*/
|
||||
}
|
||||
GameEffectEnum::Polymorph
|
||||
| GameEffectEnum::PolymorphRandom
|
||||
|
|
|
@ -71,8 +71,7 @@ function effect_sync.get_sync_data(entity, perks)
|
|||
else
|
||||
table.insert(sync_data, name)
|
||||
end
|
||||
else
|
||||
table.insert(sync_data, util.serialize_entity(effect))
|
||||
--[[else table.insert(sync_data, util.serialize_entity(effect))]]
|
||||
end
|
||||
end
|
||||
return sync_data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue