Skip to content

Commit 1861d10

Browse files
Update ShowMethod.cs
1 parent 7cd521b commit 1861d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Code/MethodSystem/Methods/PlayerVariableMethods/ShowMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public override void Execute()
3737

3838
if (!PlayerExpressionToken.PropertyInfoMap.TryGetValue(property, out var propInfo) ||
3939
propInfo is not { ReturnType: var type, Handler: var handler } ||
40-
typeof(LiteralValue).IsAssignableFrom(type))
40+
!typeof(LiteralValue).IsAssignableFrom(type))
4141
{
4242
throw new ScriptRuntimeError(this, ErrorReasons[0]);
4343
}

0 commit comments

Comments
 (0)