diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinTextureManager.java | 3 |
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<>(); } } |