Explorar el Código

Add null checks

Lortseam hace 4 años
padre
commit
4a7ede9b28
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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");
         }