Function call and its definition giving different results

Any ideas why this is happening? Can post more context if needed but this seems pretty clear -- isTurn() is a one-liner which does not give the same result as that line. No variables are being modified in between calls.
No description
5 Replies
JavaBot
JavaBot3w ago
This post has been reserved for your question.
Hey @Minotaur | Ping Friendly! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
ayylmao123xdd
ayylmao123xdd3w ago
can you try logging these values in console perhaps and can you show the code and can you also check if by any chance theres some other thread changing these variables
Minotaur | Ping Friendly
thanks for that suggestion, I went digging and realized a multithreaded method had logical errors, and I'm guessing that's what was causing it since the problem is gone now
JavaBot
JavaBot3w ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
JavaBot
JavaBot3w ago
Post Closed
This post has been closed by <@723560576868941885>.

Did you find this page helpful?