Skip to content

Commit 0c54812

Browse files
committed
fix(schema): Make SetStateChanged async
1 parent 2add55a commit 0c54812

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

managed/src/SwiftlyS2.Generated/Natives/Schema.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ internal static class NativeSchema {
1414
private unsafe static delegate* unmanaged<nint, ulong, void> _SetStateChanged;
1515

1616
public unsafe static void SetStateChanged(nint entity, ulong hash) {
17-
if (Thread.CurrentThread.ManagedThreadId != _MainThreadID) {
18-
throw new InvalidOperationException("This method can only be called from the main thread.");
19-
}
2017
_SetStateChanged(entity, hash);
2118
}
2219

natives/sdk/schema.native

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Schema
22

3-
sync void SetStateChanged = ptr entity, uint64 hash
3+
void SetStateChanged = ptr entity, uint64 hash
44
uint32 FindChainOffset = string className
55
int32 GetOffset = uint64 hash
66
bool IsStruct = string className

0 commit comments

Comments
 (0)