diff --git a/core/src/io/anuke/mindustry/core/ContentLoader.java b/core/src/io/anuke/mindustry/core/ContentLoader.java index a00baf7cb0..dafd4966fc 100644 --- a/core/src/io/anuke/mindustry/core/ContentLoader.java +++ b/core/src/io/anuke/mindustry/core/ContentLoader.java @@ -201,7 +201,7 @@ public class ContentLoader{ //offset negative values by 256, as they are probably a product of byte overflow if(id < 0) id += 256; - if(temporaryMapper != null && temporaryMapper[type.ordinal()] != null){ + if(temporaryMapper != null && temporaryMapper[type.ordinal()] != null && temporaryMapper[type.ordinal()].length != 0){ return (T)temporaryMapper[type.ordinal()][id]; }