Skip to content

Commit 5bd8af4

Browse files
committed
fix: Ignore static field modifiations on DebugNetworkStream
1 parent 1bf8ef1 commit 5bd8af4

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/OTAPI.USP.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<description>
1313
An additional IL patch layered on top of OTAPI, enabling multiple Terraria server instances to run concurrently within a single process.
1414
</description>
15-
<summary>Unified Server Process [INJECT_VERSION] on Open Terraria API [INJECT_OTAPI_VERSION] - Terraria 1.4.4.9[INJECT_GIT_HASH]</summary>
15+
<summary>Unified Server Process [INJECT_VERSION] on Open Terraria API [INJECT_OTAPI_VERSION] - Terraria 1.4.5.4[INJECT_GIT_HASH]</summary>
1616
<releaseNotes>
17-
Preliminary Terraria 1.4.4.9
17+
Preliminary Terraria 1.4.5.4
1818
</releaseNotes>
1919
<copyright>Copyright 2025-[INJECT_YEAR]</copyright>
2020
<tags>Terraria,OTAPI,MultiServer</tags>

src/OTAPI.UnifiedServerProcess.GlobalNetwork/OTAPI.UnifiedServerProcess.GlobalNetwork.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
</ItemGroup>
1818
<ItemGroup>
1919
<Reference Include="OTAPI">
20-
<HintPath>..\OTAPI.UnifiedServerProcess\bin\Debug\net9.0\output\OTAPI.dll</HintPath>
20+
<HintPath>..\OTAPI.UnifiedServerProcess\bin\Release\net9.0\output\OTAPI.dll</HintPath>
2121
</Reference>
2222
<Reference Include="OTAPI.Runtime">
23-
<HintPath>..\OTAPI.UnifiedServerProcess\bin\Debug\net9.0\output\OTAPI.Runtime.dll</HintPath>
23+
<HintPath>..\OTAPI.UnifiedServerProcess\bin\Release\net9.0\output\OTAPI.Runtime.dll</HintPath>
2424
</Reference>
2525
</ItemGroup>
2626

src/OTAPI.UnifiedServerProcess/Core/Patching/FieldFilterPatching/ForceStaticProcessor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public class ForceStaticProcessor() : IFieldFilterArgProcessor
3131
"Terraria.Net.LegacyNetBufferPool",
3232
// ignore UIElement._idCounter and UniqueId, it is unused
3333
"Terraria.UI.UIElement",
34+
// ignore DebugNetworkStream it should not run on server
35+
"Terraria.Net.Sockets.DebugNetworkStream",
3436
];
3537
public static readonly List<string> forceStaticFieldFullNames = [
3638
// global singleton

0 commit comments

Comments
 (0)