diff --git a/core/src/mindustry/core/ContentLoader.java b/core/src/mindustry/core/ContentLoader.java index 1ef48b5018..b21f287e0d 100644 --- a/core/src/mindustry/core/ContentLoader.java +++ b/core/src/mindustry/core/ContentLoader.java @@ -212,6 +212,7 @@ public class ContentLoader{ } public T getByName(ContentType type, String name){ + if(name == null) return null; var map = contentNameMap[type.ordinal()]; if(map == null) return null;