Changelog entry

This commit is contained in:
Maxicarlos08 2023-09-06 17:54:43 +02:00
parent ec42b9b5ce
commit 0613cd8dc1
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View File

@ -58,6 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed wild roaming cyclop loot table to not drop the quarry key
- Dungeons now have an outer wall, preventing them from intersecting with caves or leaving holes in sides of mountains.
- Location names are displayed in character selection dialog
- You can no longer write messages to old groups after being kicked and not having updated your chat mode.
## [0.15.0] - 2023-07-01

View File

@ -913,9 +913,6 @@ impl StateExt for State {
let is_within =
|target, a: &comp::Pos, b: &comp::Pos| a.0.distance_squared(b.0) < target * target;
let id_maps = ecs.read_resource::<IdMaps>();
let entity_from_uid = |uid| id_maps.uid_entity(uid);
let group_manager = ecs.read_resource::<comp::group::GroupManager>();
let group_info = msg.get_group().and_then(|g| group_manager.group_info(*g));
@ -924,6 +921,9 @@ impl StateExt for State {
.clone()
.map_group(|_| group_info.map_or_else(|| "???".to_string(), |i| i.name.clone()));
let id_maps = ecs.read_resource::<IdMaps>();
let entity_from_uid = |uid| id_maps.uid_entity(uid);
if msg.chat_type.uid().map_or(true, |sender| {
entity_from_uid(sender).map_or(false, |e| {
self.validate_chat_msg(