File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Celeste.Mod.mm/Mod/Registry Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ public static class EntityRegistry {
2727 public static IReadOnlySet < string > GetKnownSidsFromType ( Type type ) => TypeToSids . GetValueOrDefault ( type ) ?? EmptyStringSet ;
2828
2929 internal static void RegisterSidToTypeConnection ( string sid , Type type ) {
30+ if ( sid is null || type is null )
31+ return ;
32+
3033 ref var sidToTypeEntry = ref CollectionsMarshal . GetValueRefOrAddDefault ( SidToTypes , sid , out _ ) ;
3134 sidToTypeEntry ??= new ( 1 ) ;
3235 sidToTypeEntry . Add ( type ) ;
@@ -270,4 +273,4 @@ static EntityRegistry() {
270273 RegisterSidToTypeConnection ( "spawnFacingTrigger" , typeof ( SpawnFacingTrigger ) ) ;
271274 RegisterSidToTypeConnection ( "detachFollowersTrigger" , typeof ( DetachStrawberryTrigger ) ) ;
272275 }
273- }
276+ }
You can’t perform that action at this time.
0 commit comments