|
if(item == null || PartResourceLibrary.Instance.GetDefinition(item.id) == null) |
|
{ |
|
continue; |
|
} |
This prevents the Separator from appearing on the window, and can't be remove in game.
and there is my Solution:
if(item == null || (PartResourceLibrary.Instance.GetDefinition(item.id) == null && !item.IsSeparator))
{
continue;
}
by the way,I also pull a PR for Localization 😄
AlternateResourcePanel/AlternateResourcePanel/ARPWindowResourceConfig.cs
Lines 108 to 111 in fe82bb3
This prevents the Separator from appearing on the window, and can't be remove in game.
and there is my Solution:
by the way,I also pull a PR for Localization 😄