From ccdc82cfe5091367de8b380ab50d935d8249f807 Mon Sep 17 00:00:00 2001 From: LeCloutPanda <53411604+LeCloutPanda@users.noreply.github.com> Date: Thu, 4 Apr 2024 08:14:31 +1100 Subject: [PATCH] There we go done for real this time --- ProtoFlux/Users/Status/IsUserInSeatedMode.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ProtoFlux/Users/Status/IsUserInSeatedMode.cs b/ProtoFlux/Users/Status/IsUserInSeatedMode.cs index 98d7191..8ecd617 100644 --- a/ProtoFlux/Users/Status/IsUserInSeatedMode.cs +++ b/ProtoFlux/Users/Status/IsUserInSeatedMode.cs @@ -13,12 +13,7 @@ public class IsUserInSeatedModeNode : ValueFunctionNode protected override bool Compute(ExecutionContext context) { User user = User.Evaluate(context); - if (user == null) - { - return false; - } - - return user.InputInterface.SeatedMode; + return user == null ? false : user.InputInterface.SeatedMode; } } } \ No newline at end of file