Merge pull request #402 from Online5277/fix/menu-hotbar-keys

Prevent hotbar selection from changing behind menus
This commit is contained in:
Ludovic Marie
2026-10-15 21:30:02 +02:00
committed by GitHub
+3 -1
View File
@@ -8767,7 +8767,9 @@ impl Game<'_> {
| KeyCode::Digit6
| KeyCode::Digit7
| KeyCode::Digit8
| KeyCode::Digit9 => {
| KeyCode::Digit9
if self.screen == Screen::Playing =>
{
self.selected = match key {
KeyCode::Digit1 => 0,
KeyCode::Digit2 => 1,