Fixed another faulty check causing lever/gate requests to be ignored. The gate flag is now a boolean for clarity.