Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential fix for disappearing sidebar buttons #30

Merged
merged 4 commits into from
Jan 26, 2024

Conversation

Lyfts
Copy link
Member

@Lyfts Lyfts commented Jan 17, 2024

Hopefully this fixes the problem mentioned in #28.

I haven't been able to replicate the issue at all and thus I can't really say for sure if this fixes it. I do however have a pretty good idea of what the problem is and can at the very least say that this doesn't break anything.

SERVER_MODS_0.clear() has been moved inside the same check that the put is in, since there's really no reason to clear the map if an empty map is received...
There might also be some cases where another NetworkCheckHandler list gets sent out after joining a server thus overwriting the map. So instead of checking a map that can be wiped/overwritten if forge decides to be forge, we take a copy of it when joining the server and check that one instead.

Generic injections has also been enabled. It's not related to the issue in any way, the unchecked warnings were simply just annoying.

@Lyfts Lyfts requested a review from a team January 17, 2024 13:39
@Lyfts Lyfts force-pushed the fix-buttons-disappear branch from 291cec2 to 5c20b9a Compare January 22, 2024 16:26
@Lyfts
Copy link
Member Author

Lyfts commented Jan 26, 2024

I can confirm that this fixed the issue for one player.

@Dream-Master Dream-Master merged commit 2e5bef3 into GTNewHorizons:master Jan 26, 2024
1 check passed
@Lyfts Lyfts deleted the fix-buttons-disappear branch January 27, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants