mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-25 14:44:35 +00:00
make icon loading thread safe
fixes GTNewHorizons/GT-New-Horizons-Modpack/issues/25997
This commit is contained in:
1 parent
9da5b2b6b5
commit
c1e8606629
1 file changed
+2
-1
@@ -1,6 +1,7 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
@@ -19,7 +20,7 @@ import lombok.experimental.Delegate;
|
||||
*/
|
||||
public class TextureSubmap implements IIcon, ISubmap {
|
||||
|
||||
private static final List<TextureSubmap> submaps = new ArrayList<>();
|
||||
private static final List<TextureSubmap> submaps = Collections.synchronizedList(new ArrayList<>(128));
|
||||
|
||||
@Delegate
|
||||
private final IIcon baseIcon;
|
||||
|
||||
Reference in new issue
Block a user