Skip to content

Move all ContentFinder.Get() calls to MultiplayerStatic.cs#567

Merged
notfood merged 3 commits intorwmt:devfrom
SirrWilliam:dev-1.6-Texture2D
Jul 15, 2025
Merged

Move all ContentFinder.Get() calls to MultiplayerStatic.cs#567
notfood merged 3 commits intorwmt:devfrom
SirrWilliam:dev-1.6-Texture2D

Conversation

@SirrWilliam
Copy link

image
Type DisableTradeModeButtonForOtherFactions probably needs a StaticConstructorOnStartup attribute, because it has a field GiftModeIcon of type Texture2D. All assets must be loaded in the main thread.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Warning_Patch1 (string)
Verse.StaticConstructorOnStartupUtility/<>cDisplayClass2_0:<ReportProbablyMissingAttributes>b0 (System.Type)
System.Threading.Tasks.Parallel/<>cDisplayClass33_0`2<System.Type, object>:<ForEachWorker>b0 (int)
System.Threading.Tasks.Parallel/<>cDisplayClass19_0`1<object>:<ForWorker>b1 (System.Threading.Tasks.RangeWorker&,int,bool&)
System.Threading.Tasks.TaskReplicator/Replica`1<System.Threading.Tasks.RangeWorker>:ExecuteAction (bool&)
System.Threading.Tasks.TaskReplicator/Replica:Execute ()
System.Threading.Tasks.TaskReplicator/Replica/<>c:<.ctor>b__4_0 (object)
System.Threading.Tasks.Task:InnerInvoke ()
System.Threading.Tasks.Task:Execute ()
System.Threading.Tasks.Task:ExecutionContextCallback (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.Tasks.Task:ExecuteWithThreadLocal (System.Threading.Tasks.Task&)
System.Threading.Tasks.Task:ExecuteEntry (bool)
System.Threading.Tasks.Task:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem ()
System.Threading.ThreadPoolWorkQueue:Dispatch ()
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

@notfood notfood added fix Fixes for a bug or desync. 1.6 Fixes or bugs relating to 1.6 (Not Odyssey). labels Jul 15, 2025
@notfood notfood moved this to In review in 1.6 and Odyssey Jul 15, 2025
@notfood notfood merged commit 3fad9e9 into rwmt:dev Jul 15, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In review to Done in 1.6 and Odyssey Jul 15, 2025
@SirrWilliam SirrWilliam deleted the dev-1.6-Texture2D branch July 15, 2025 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6 Fixes or bugs relating to 1.6 (Not Odyssey). fix Fixes for a bug or desync.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants