From 38b004a9ee64f8614ed3d79d0a301c8c247b51e2 Mon Sep 17 00:00:00 2001 From: Abhishrek05 <90010729+Abhishrek05@users.noreply.github.com> Date: Thu, 18 May 2023 16:57:54 -0700 Subject: [PATCH] yuh --- src/main/java/frc4388/robot/subsystems/Shooter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/frc4388/robot/subsystems/Shooter.java b/src/main/java/frc4388/robot/subsystems/Shooter.java index 75fd694..61fc325 100644 --- a/src/main/java/frc4388/robot/subsystems/Shooter.java +++ b/src/main/java/frc4388/robot/subsystems/Shooter.java @@ -32,6 +32,8 @@ public class Shooter extends SubsystemBase { * @return True if the shooter was ready or false if the shooter was not ready */ public boolean fire() { + if(!isReady()) + return false; m_solenoid.set(true); return true; }