dont try to sync file-less entities

This commit is contained in:
bgkillas 2025-03-11 22:15:04 -04:00
parent 44464947f7
commit 1ac29cd26f
2 changed files with 13 additions and 13 deletions

View file

@ -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

View file

@ -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