Fix material selection panel

This commit is contained in:
2025-01-17 03:33:25 +08:00
parent cdc4336ed5
commit 1b1efbce6d

View File

@@ -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);
}