some bugfixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
table: !type:GroupSelector
|
||||
children:
|
||||
- id: CP14FoodPotato
|
||||
- id: CP14FoodOnion
|
||||
- id: CP14AgaricMushroom #dont eat
|
||||
- id: CP14Cloth10
|
||||
- id: CP14CrayonWhite
|
||||
|
||||
@@ -43,6 +43,9 @@
|
||||
params:
|
||||
variation: 0.03
|
||||
volume: -5
|
||||
- type: Lock
|
||||
locked: false
|
||||
- type: CP14Lock #Empty, for installing new locks
|
||||
|
||||
- type: entity
|
||||
parent:
|
||||
|
||||
@@ -43,6 +43,9 @@
|
||||
params:
|
||||
variation: 0.03
|
||||
volume: -5
|
||||
- type: Lock
|
||||
locked: false
|
||||
- type: CP14Lock #Empty, for installing new locks
|
||||
|
||||
- type: entity
|
||||
parent:
|
||||
|
||||
Reference in New Issue
Block a user