mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 04:13:43 +01:00
Do never apply customize that's unavailable... hopefully.
This commit is contained in:
parent
07f1b4f61c
commit
a44eae4c1f
3 changed files with 5 additions and 0 deletions
|
|
@ -306,6 +306,8 @@ public class DesignManager
|
|||
/// <summary> Change whether to apply a specific customize value. </summary>
|
||||
public void ChangeApplyCustomize(Design design, CustomizeIndex idx, bool value)
|
||||
{
|
||||
var set = _customizations.AwaitedService.GetList(design.DesignData.Customize.Clan, design.DesignData.Customize.Gender);
|
||||
value &= set.IsAvailable(idx);
|
||||
if (!design.SetApplyCustomize(idx, value))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue