Hello.
The following part of code stopped working after update U53-642695-SC:
private static FieldInfo sideScreenMaterialContentBodyField = AccessTools.Field(typeof(DetailsScreen), "sideScreenMaterialContentBody"); GameObject sideScreenMaterialContentBody = (GameObject)sideScreenMaterialContentBodyField .GetValue(DetailsScreen.Instance); DetailsScreenMaterialPanel detailsScreenMaterialPanel = sideScreenMaterialContentBody .GetComponentInChildren<DetailsScreenMaterialPanel>(); if (__instance == (MaterialSelectionPanel)materialSelectionPanelField.GetValue(detailsScreenMaterialPanel)) return;
What happened to "sideScreenMaterialContentBody" and what replaces it now? Client version U55-663500-SC crashes upon building menu open:
Error in MaterialSelectionPanel(Clone).MaterialSelectionPanel.OnPrefabInit at (421.03, 98.83, 0.00) System.NullReferenceException: Object reference not set to an instance of an object at DeliveryTemperatureLimit.MaterialSelectionPanel_Patch.OnPrefabInit (MaterialSelectionPanel __instance) [0x00014] in <247ccb5c07ea4b5885a3a08b86b6e2bc>:0 at (wrapper dynamic-method) MaterialSelectionPanel.MaterialSelectionPanel.OnPrefabInit_Patch1(MaterialSelectionPanel) at KMonoBehaviour.InitializeComponent () [0x00068] in <1f583ce96a48430ba66629e5477a0517>:0 Build: U55-663500-SC
Steps to Reproduce
Install mod Delivery Temperature Limit
https://steamcommunity.com/sharedfiles/filedetails/?id=2963257205
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now