From 6982464caf4c95bae5aa00f0034a6d6ab90476ec Mon Sep 17 00:00:00 2001 From: Kalobi <46748261+Kalobi@users.noreply.github.com> Date: Sat, 7 Sep 2024 16:32:07 +0200 Subject: [PATCH] Clean up null check --- Code/Entities/DashThroughSpikes.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Code/Entities/DashThroughSpikes.cs b/Code/Entities/DashThroughSpikes.cs index 5acc18b..7f43f83 100644 --- a/Code/Entities/DashThroughSpikes.cs +++ b/Code/Entities/DashThroughSpikes.cs @@ -22,8 +22,7 @@ private void OnPlayer(Player player) { if (((player.StateMachine.State == Player.StDash || player.DashAttacking && player.StateMachine.State != Player.StRedDash || player.StateMachine.State == Player.StDreamDash - || (NerdHelperModule.CommunalHelperInterop.GetDreamTunnelDashState != null - && player.StateMachine.State == NerdHelperModule.CommunalHelperInterop.GetDreamTunnelDashState()) + || player.StateMachine.State == NerdHelperModule.CommunalHelperInterop.GetDreamTunnelDashState?.Invoke() || (NerdHelperModule.CommunalHelperInterop.IsSeekerDashAttacking?.Invoke() ?? false) || player.StateMachine.State == Player.StRedDash && red) && (!zeroSpeedOnly || player.Speed.Equals(Vector2.Zero))