Browse Source

Add null checks

Lortseam 4 years ago
parent
commit
4a7ede9b28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/src/main/java/me/lortseam/completeconfig/data/Config.java

+ 1 - 1
lib/src/main/java/me/lortseam/completeconfig/data/Config.java

@@ -63,7 +63,7 @@ public class Config extends BaseCollection {
      * @param modId the ID of the mod creating the config
      * @param branch the branch
      */
-    public Config(String modId, String[] branch, @NonNull ConfigContainer... containers) {
+    public Config(@NonNull String modId, @NonNull String[] branch, @NonNull ConfigContainer... containers) {
         if (!FabricLoader.getInstance().isModLoaded(modId)) {
             throw new IllegalArgumentException("Mod " + modId + " is not loaded");
         }