aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorIlmarsXd <74308163+IlmarsXd@users.noreply.github.com>2024-01-13 18:42:30 +0200
committerGitHub <noreply@github.com>2024-01-13 17:42:30 +0100
commit33e458dbf4327b60faef180322cfba5da7ce3370 (patch)
tree6ae6fe7a0d7e5e6023163b67e34f7c0c9c5baed6 /src/main/java/io
parent5eb0881e1b470d33a8e02f7d877f9b225516789b (diff)
downloadNotEnoughUpdates-33e458dbf4327b60faef180322cfba5da7ce3370.tar.gz
NotEnoughUpdates-33e458dbf4327b60faef180322cfba5da7ce3370.tar.bz2
NotEnoughUpdates-33e458dbf4327b60faef180322cfba5da7ce3370.zip
Actually fix the Concurrent Modification issue (#989)
actually fix the issue
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinTextureManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinTextureManager.java b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinTextureManager.java
index 01c053b8..387ffeaf 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinTextureManager.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinTextureManager.java
@@ -35,6 +35,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import java.util.Collections;
import java.util.List;
+import java.util.concurrent.CopyOnWriteArrayList;
@Mixin(TextureManager.class)
public class MixinTextureManager {
@@ -58,6 +59,6 @@ public class MixinTextureManager {
*/
@Inject(method = "<init>", at = @At("RETURN"))
public void constructor(CallbackInfo ci) {
- listTickables = Collections.synchronizedList(Lists.newArrayList());
+ listTickables = new CopyOnWriteArrayList<>();
}
}