From 499b7b2e67640adc2ea3d002c779f0d57398e2aa Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 25 Sep 2018 08:41:40 -0400 Subject: [PATCH] Crash fix --- core/src/io/anuke/mindustry/core/ContentLoader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/core/ContentLoader.java b/core/src/io/anuke/mindustry/core/ContentLoader.java index 20046d3ff9..2954a28a2b 100644 --- a/core/src/io/anuke/mindustry/core/ContentLoader.java +++ b/core/src/io/anuke/mindustry/core/ContentLoader.java @@ -25,6 +25,7 @@ import io.anuke.mindustry.world.Block; import io.anuke.mindustry.world.ColorMapper; import io.anuke.ucore.function.Consumer; import io.anuke.ucore.util.Log; +import io.anuke.ucore.util.ThreadArray; /** * Loads all game content. @@ -110,7 +111,7 @@ public class ContentLoader{ registerTypes(); for(ContentType type : ContentType.values()){ - contentMap[type.ordinal()] = new Array<>(); + contentMap[type.ordinal()] = new ThreadArray<>(); contentNameMap[type.ordinal()] = new ObjectMap<>(); }