mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Update changelog, cargo fmt
This commit is contained in:
parent
7439d09708
commit
ce8b8b6f12
@ -17,11 +17,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Use fluent for translations
|
- Use fluent for translations
|
||||||
- First tab on Login screen triggers username focus
|
- First tab on Login screen triggers username focus
|
||||||
- Certain NPCs will now attack when alone with victim
|
- Certain NPCs will now attack when alone with victim
|
||||||
|
- /kill_npcs no longer leaves drops behind and also has bug causing it to not destroy entities
|
||||||
|
fixed.
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed crash due to zooming out very far
|
- Fixed crash due to zooming out very far
|
||||||
|
- Client properly knows trade was cancelled when exiting to the character screen (and no longer
|
||||||
|
tries to display the trade window when rejoining)
|
||||||
|
- Cancel trades for an entity when it is deleted (note this doesn't effect trades between players
|
||||||
|
since their entities are not removed).
|
||||||
|
|
||||||
## [0.13.0] - 2022-07-23
|
## [0.13.0] - 2022-07-23
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
use super::Event;
|
use super::Event;
|
||||||
use crate::{
|
use crate::{
|
||||||
client::Client, metrics::PlayerMetrics,
|
client::Client, metrics::PlayerMetrics, persistence::character_updater::CharacterUpdater,
|
||||||
persistence::character_updater::CharacterUpdater, presence::Presence, state_ext::StateExt,
|
presence::Presence, state_ext::StateExt, BattleModeBuffer, Server,
|
||||||
BattleModeBuffer, Server,
|
|
||||||
};
|
};
|
||||||
use common::{
|
use common::{
|
||||||
comp,
|
comp,
|
||||||
@ -31,8 +30,9 @@ pub fn handle_exit_ingame(server: &mut Server, entity: EcsEntity) {
|
|||||||
// Note: If other `ServerEvent`s are referring to this entity they will be
|
// Note: If other `ServerEvent`s are referring to this entity they will be
|
||||||
// disrupted.
|
// disrupted.
|
||||||
|
|
||||||
// Since we remove `Uid` below, any trades won't be cancelled by `delete_entity_recorded`. So
|
// Since we remove `Uid` below, any trades won't be cancelled by
|
||||||
// we cancel the trade here. (maybe the trade key could be switched from `Uid` to `Entity`)
|
// `delete_entity_recorded`. So we cancel the trade here. (maybe the trade
|
||||||
|
// key could be switched from `Uid` to `Entity`)
|
||||||
super::cancel_trades_for(state, entity);
|
super::cancel_trades_for(state, entity);
|
||||||
|
|
||||||
let maybe_admin = state.ecs().write_storage::<comp::Admin>().remove(entity);
|
let maybe_admin = state.ecs().write_storage::<comp::Admin>().remove(entity);
|
||||||
|
@ -1172,11 +1172,8 @@ impl Server {
|
|||||||
where
|
where
|
||||||
S: Into<ServerMsg>,
|
S: Into<ServerMsg>,
|
||||||
{
|
{
|
||||||
if let Some(client) = self.state
|
if let Some(client) = self.state.ecs().read_storage::<Client>().get(entity) {
|
||||||
.ecs()
|
client.send_fallible(msg);
|
||||||
.read_storage::<Client>()
|
|
||||||
.get(entity) {
|
|
||||||
client.send_fallible(msg);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user