Merge branch 'xMAC94x/fix_torvus_and_other_client_only' into 'master'

move ship_manifest to common assets until its properly included in servers ECS...

See merge request veloren/veloren!3009
This commit is contained in:
Marcel 2021-11-15 09:16:03 +00:00
commit e218ec2b44
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ pub mod figuredata {
_: &str,
) -> Result<Self, assets::Error> {
let manifest: AssetHandle<Ron<ShipCentralSpec>> =
AssetExt::load("server.manifests.ship_manifest")?;
AssetExt::load("common.manifests.ship_manifest")?;
let mut colliders = HashMap::new();
for (_, spec) in (manifest.read().0).0.iter() {
for bone in [&spec.bone0, &spec.bone1, &spec.bone2].iter() {
@ -238,7 +238,7 @@ pub mod figuredata {
// TODO: Load this from the ECS as a resource, and maybe make it more general than ships
// (although figuring out how to keep the figure bones in sync with the terrain offsets seems
// like a hard problem if they're not the same manifest)
pub static ref VOXEL_COLLIDER_MANIFEST: AssetHandle<ShipSpec> = AssetExt::load_expect("server.manifests.ship_manifest");
pub static ref VOXEL_COLLIDER_MANIFEST: AssetHandle<ShipSpec> = AssetExt::load_expect("common.manifests.ship_manifest");
}
#[test]