lazy fix
This commit is contained in:
parent
b9eae69630
commit
7836d6775d
@ -39,10 +39,6 @@ export default function App() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const isValidAction = (action) => { //seperate this out to make the condition readable later
|
|
||||||
return ((9 <= action <= 20000) || (100001 <= action <= 100300))
|
|
||||||
}
|
|
||||||
|
|
||||||
if (logSplit.length === 1 && logSplit[0].charID) {
|
if (logSplit.length === 1 && logSplit[0].charID) {
|
||||||
selfId = logSplit[0].charID
|
selfId = logSplit[0].charID
|
||||||
openNewEncounter()
|
openNewEncounter()
|
||||||
@ -86,7 +82,7 @@ export default function App() {
|
|||||||
const action = parseInt(logParameter3, 16)
|
const action = parseInt(logParameter3, 16)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
isValidAction(action) ||
|
!((9 <= action <= 20000) || (100001 <= action <= 100300)) ||
|
||||||
(logTimestamp === lastTimestamp && action === lastAction)
|
(logTimestamp === lastTimestamp && action === lastAction)
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user