public static void Postfix(IntPtr thisPtr, IntPtr apiWorldPtr, IntPtr apiWorldInstancePtr, byte something1, byte something2, IntPtr additionalJunkPtr) { try { worldInfoSetupDelegate(thisPtr, apiWorldPtr, apiWorldInstancePtr, something1, something2, additionalJunkPtr); if (apiWorldPtr != IntPtr.Zero) { WorldButton.UpdateText(new ApiWorld(apiWorldPtr)); } } catch (Exception e) { MelonLogger.Error($"Something went horribly wrong in WorldInfoSetup Patch, pls report to gompo: {e}"); } }
public static void Postfix(ApiWorld __0 = null) => WorldButton.UpdateText(__0);