Skip to content

Commit 7febc21

Browse files
committed
Fix bug in MaybeAddModifier
1 parent 3590e19 commit 7febc21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

B9PartSwitch/PartSwitch/PartSubtype.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using UniLinq;
44
using UnityEngine;
@@ -295,7 +295,7 @@ void MaybeAddModifier(IPartModifier modifier)
295295

296296
if (modifier is IPartAspectLock partAspectLockHolder)
297297
{
298-
object partAspectLock = partAspectLockHolder;
298+
object partAspectLock = partAspectLockHolder.PartAspectLock;
299299
if (aspectLocksOnOtherModules.Contains(partAspectLock))
300300
{
301301
OnInitializationError($"More than one module can't manage {modifier.Description}");

0 commit comments

Comments
 (0)