Fix material selection panel
This commit is contained in:
@@ -7,8 +7,14 @@ namespace PriorityUX {
|
||||
[HarmonyPatch(nameof(MaterialSelectionPanel.RefreshSelectors))]
|
||||
[HarmonyPostfix]
|
||||
static void RefreshSelectorsPostfix(PriorityScreen ___priorityScreen) {
|
||||
if (___priorityScreen == null) {
|
||||
Debug.Log("RefreshSelectors ___priorityScreen is null");
|
||||
return;
|
||||
}
|
||||
Debug.Log("RefreshSelectors");
|
||||
Debug.Log("___priorityScreen.gameObject.activeSelf: " + ___priorityScreen.gameObject.activeSelf);
|
||||
if (___priorityScreen.gameObject != null) {
|
||||
Debug.Log("___priorityScreen.gameObject.activeSelf: " + ___priorityScreen.gameObject.activeSelf);
|
||||
}
|
||||
// if (___priorityScreen.gameObject.activeSelf)
|
||||
Utils.refreshPriorityScreen(___priorityScreen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user