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

Fix ConcurrentModificationException. #1

Closed
wants to merge 1 commit into from
Closed

Fix ConcurrentModificationException. #1

wants to merge 1 commit into from

Conversation

JasperLorelai
Copy link

This PR fixes ConcurrentModificationException at: https://github.com/Xezard/XGlow/blob/master/api/src/main/java/ru/xezard/glow/data/glow/Glow.java#L228
Stacktrace:

java.util.ConcurrentModificationException
	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493)
	at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1516)
	at java.base/java.lang.Iterable.forEach(Iterable.java:74)
	at com.nisovin.magicspells.shaded.xglow.data.glow.Glow.destroy(Glow.java:228)
	at com.nisovin.magicspells.spells.targeted.ext.GlowSpell.lambda$glow$0(GlowSpell.java:138)
	at com.nisovin.magicspells.MagicSpells.lambda$scheduleDelayedTask$4(MagicSpells.java:1421)
	at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99)
	at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
	at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1294)
	at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:377)
	at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1209)
	at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:997)
	at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:178)
	at java.base/java.lang.Thread.run(Thread.java:834)

Xezard added a commit that referenced this pull request Jan 3, 2021
@Xezard
Copy link
Owner

Xezard commented Jan 3, 2021

Commit added, thanks for pr.

@Xezard Xezard closed this Jan 3, 2021
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.

2 participants