mccreery / better-hud

All the information you'll ever need! A Minecraft mod written in Forge.
https://www.curseforge.com/minecraft/mc-mods/better-hud
MIT License
32 stars 11 forks source link

PickupCount is not thread-safe #54

Closed mccreery closed 5 years ago

mccreery commented 5 years ago

Pickup count uses CopyOnWriteArrayList which only guarantees thread-safe iteration, but there are several places where, e.g. size is read before calling subList, causing a potential IndexOutOfBoundsException.

https://minecraft.curseforge.com/projects/better-hud?comment=158