Polyfrost / Hytils-Reborn

Hypixel-focused Quality of Life mod.
https://modrinth.com/mod/hytils
GNU General Public License v3.0
75 stars 15 forks source link

Update AutoGG.java (bug fix) #108

Closed ImPot8o closed 2 months ago

ImPot8o commented 2 months ago

Description

Its messy, but this fixes a bug where The autogg function would only run once on the first game you played when the game was loaded. It now sets the matchFound bool to false after 5 seconds. that's the longest you can set the delay for autogg messages. this has worked perfectly for me, even if you don't have a second autogg message turned on.

only contents of this file have been modified src/main/java/org/polyfrost/hytils/handlers/chat/modules/triggers/AutoGG.java

MicrocontrollersDev commented 2 months ago

oops.. idk how I missed this issue the first time. I think this fix (or at least the idea behind it, reading code on mobile is hard) is fine. makes sure that for any game now or in the future where a new game starts without switching lobbies or where both casual and game end autogg trigger, hytils will at least attempt to properly send the gg message (if you don't get spam checked lol)

ImPot8o commented 2 months ago

yeah, the problem with not switching lobbies, which I run into sometimes with Sumo, is you said gg or whatever recently so it doesn't say the messages and just says something about "this message is too similar to the previous message"

Fxzzi commented 1 month ago

Hey, could we get another release of hytils to implement this change into a release? Thanks in advance!!