diff --git a/core/src/io/anuke/mindustry/mod/ContentParser.java b/core/src/io/anuke/mindustry/mod/ContentParser.java index c61364eff6..dd8adfe111 100644 --- a/core/src/io/anuke/mindustry/mod/ContentParser.java +++ b/core/src/io/anuke/mindustry/mod/ContentParser.java @@ -115,6 +115,8 @@ public class ContentParser{ return c; } + /** Checks all @NonNull fields in this object, recursively. + * Throws an exception if any are null.*/ private void checkNulls(Object object){ checkNulls(object, new ObjectSet<>()); }