Merge branch 'zesterer/small-fixes' into 'master'

Prevent tamed entities constantly trying to 'return home'

See merge request veloren/veloren!776
This commit is contained in:
Joshua Barretto 2020-01-29 17:00:01 +00:00
commit 52eb4d5946

View File

@ -617,13 +617,14 @@ impl Server {
.map(|(entity, _, _)| entity);
nearest_tameable
} {
let _ = state
.ecs()
.write_storage::<comp::Alignment>()
.insert(
let _ = state.ecs().write_storage().insert(
tameable_entity,
comp::Alignment::Owned(entity),
);
let _ = state.ecs().write_storage().insert(
tameable_entity,
comp::Agent::default(),
);
false
} else {
true