mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
52eb4d5946
@ -617,13 +617,14 @@ impl Server {
|
|||||||
.map(|(entity, _, _)| entity);
|
.map(|(entity, _, _)| entity);
|
||||||
nearest_tameable
|
nearest_tameable
|
||||||
} {
|
} {
|
||||||
let _ = state
|
let _ = state.ecs().write_storage().insert(
|
||||||
.ecs()
|
tameable_entity,
|
||||||
.write_storage::<comp::Alignment>()
|
comp::Alignment::Owned(entity),
|
||||||
.insert(
|
);
|
||||||
tameable_entity,
|
let _ = state.ecs().write_storage().insert(
|
||||||
comp::Alignment::Owned(entity),
|
tameable_entity,
|
||||||
);
|
comp::Agent::default(),
|
||||||
|
);
|
||||||
false
|
false
|
||||||
} else {
|
} else {
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user