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

Fixed glider requiring two clicks after scrolling away #25

Merged
merged 2 commits into from
Jan 12, 2025

Conversation

Shaddaaa
Copy link

@Shaddaaa Shaddaaa commented Jan 12, 2025

Issue: The OpenBlocks Hang Glider closes when not in your hand anymore (e.g. when scrolling away). But after taking it into your hand again it requires two clicks to open again, instead of one. This happens to me in SP, but I see no reason why it shouldn't happen in MP too.

This happens because the ItemHangGlider and EntityHangGlider classes use two seperate static maps maintaining all EntityHangGliders in use right now and they did slightly different things. This change reduces this to a single map in EntityHangGlider and fixes the above issue.

I believe Issue 16815 might also be fixed by this.

This is my first pull request, so if anything is unclear I'm happy to respond :)

@chochem chochem requested a review from a team January 12, 2025 18:48
Copy link

@YannickMG YannickMG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm glad someone tackled this. It works well in SP and MP.

I can't see an obvious issue with this approach. I do note the nature of the map is changing a lot but I also see that keeping the old map reintroduces the bug, but changing it is not sufficient to fix it.

@serenibyss serenibyss enabled auto-merge (squash) January 12, 2025 22:15
@serenibyss serenibyss merged commit 9ad7aec into GTNewHorizons:master Jan 12, 2025
1 check passed
@Pilzinsel64
Copy link

Pilzinsel64 commented Jan 24, 2025

This breaks the glider partly in multi-player. If you want to close the glider you NEED to scroll away to disable it. A simple click wouldn't disable it anymore what makes it harder to use. Had no time to troubleshoot myself yet, so I leave this here as comment for now.

EDIT: Fix at #27

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.

4 participants