From 419c8322b8e4607ca7e84a7e03684b4481433419 Mon Sep 17 00:00:00 2001 From: Rawrington Date: Wed, 20 Jan 2021 14:21:24 +0000 Subject: [PATCH] fixed sanity check! im bad! --- src/App.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 4055766..648a197 100644 --- a/src/App.js +++ b/src/App.js @@ -81,9 +81,10 @@ export default function App() { const action = parseInt(logParameter3, 16) - if ( - !((9 <= action <= 20000) || (100001 <= action <= 100300)) || - (logTimestamp === lastTimestamp && action === lastAction) + if ( //sanity check the tea sis period wig snapped + ((action < 9 || action > 20000) && //is not a combat action + (action < 100001 || action > 100300)) || //and is not a crafting action + (logTimestamp === lastTimestamp && action === lastAction) //or this action is a bug/duplicate ) return