Skip to content

Commit 5771fa3

Browse files
Update PlayerExpressionToken.cs
1 parent 822a448 commit 5771fa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TokenSystem/Tokens/ExpressionTokens/PlayerExpressionToken.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ public class Info<T>(Func<Player, T> handler, string? description) : Info
108108
[PlayerProperty.IsGodModeEnabled] = new Info<BoolValue>(plr => plr.IsGodModeEnabled, null),
109109
[PlayerProperty.IsNoclipEnabled] = new Info<BoolValue>(plr => plr.IsNoclipEnabled, null),
110110
[PlayerProperty.Gravity] = new Info<NumberValue>(plr => -(decimal)plr.Gravity.y, null),
111-
[PlayerProperty.RoleChangeReason] = new Info<TextValue>(plr => plr.RoleBase._spawnReason.ToString(), null),
112-
[PlayerProperty.RoleSpawnFlags] = new Info<TextValue>(plr => plr.RoleBase._spawnFlags.ToString(), null),
111+
[PlayerProperty.RoleChangeReason] = new Info<TextValue>(plr => plr.RoleBase.ServerSpawnReason.ToString(), null),
112+
[PlayerProperty.RoleSpawnFlags] = new Info<TextValue>(plr => plr.RoleBase.ServerSpawnFlags.ToString(), null),
113113
[PlayerProperty.AuxiliaryPower] = new Info<NumberValue>(plr =>
114114
{
115115
if (plr.RoleBase is Scp079Role scp)

0 commit comments

Comments
 (0)