Skip to content

Fix ConcurrentModificationException in hangglider - #51

Merged
tiffit merged 3 commits into
GTNewHorizons:masterfrom
MassAnarchyy:fix/hangglider-cme
Jun 27, 2026
Merged

Fix ConcurrentModificationException in hangglider#51
tiffit merged 3 commits into
GTNewHorizons:masterfrom
MassAnarchyy:fix/hangglider-cme

Conversation

@MassAnarchyy

Copy link
Copy Markdown
Member

Fixes GTNewHorizons/GT-New-Horizons-Modpack#24872

updateGliders() iterates over gliderMap.entrySet() while the map can be modified during the client tick (thaumcraft hungry nodes as a example), causing a java.util.ConcurrentModificationException, The fix replaces the iteration with a snapshot copy (new ArrayList<>(gliderMap.entrySet())) to separate iteration from concurrent modifications during rendering with failsafes.

@tiffit
tiffit merged commit 8cce22e into GTNewHorizons:master Jun 27, 2026
1 check passed
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.

Hungry Aura Node X Hand Glider = Crash

2 participants