Fix crash on server list entry deletion

This commit is contained in:
coffee-compiler 2024-07-31 07:41:35 +00:00 committed by Marcel
parent 126f9f8502
commit 15eeab7405
2 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Charm recipes can now be found in the Potions tab of the crafting menu
- Black minimap when some terrain blocks are deleted.
- Text overflow and flickering in the crafting menu.
- Crash when deleting entries from the server list.
## [0.16.0] - 2024-03-30

View File

@ -583,6 +583,7 @@ impl Controls {
Message::DeleteServer => {
if let Some(server_index) = self.selected_server_index {
events.push(Event::DeleteServer { server_index });
self.selected_server_index = None;
}
},
/* Note: Keeping in case we re-add the disclaimer */