some bugfixes

This commit is contained in:
Ed
2025-04-25 23:17:06 +03:00
parent 72d8767a6d
commit 8fbcaf496a
4 changed files with 10 additions and 1 deletions

View File

@@ -78,7 +78,8 @@ public sealed partial class CP14WorkbenchWindow : DefaultWindow
CraftsContainer.AddChild(control);
}
RecipeSelectNull();
if (_selectedEntry is not null && !recipes.Contains(_selectedEntry.Value))
RecipeSelectNull();
}
public void UpdateState(CP14WorkbenchUiRecipesState recipesState)
@@ -227,6 +228,7 @@ public sealed partial class CP14WorkbenchWindow : DefaultWindow
private void RecipeSelectNull()
{
_selectedEntry = null;
ItemView.SetPrototype(null);
ItemName.Text = string.Empty;
ItemDescription.Text = string.Empty;

View File

@@ -90,6 +90,7 @@
table: !type:GroupSelector
children:
- id: CP14FoodPotato
- id: CP14FoodOnion
- id: CP14AgaricMushroom #dont eat
- id: CP14Cloth10
- id: CP14CrayonWhite

View File

@@ -43,6 +43,9 @@
params:
variation: 0.03
volume: -5
- type: Lock
locked: false
- type: CP14Lock #Empty, for installing new locks
- type: entity
parent:

View File

@@ -43,6 +43,9 @@
params:
variation: 0.03
volume: -5
- type: Lock
locked: false
- type: CP14Lock #Empty, for installing new locks
- type: entity
parent: