Browse Source

Remove unnecessary else

Lortseam 4 years ago
parent
commit
d329b6fa77
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/me/lortseam/completeconfig/data/Entry.java

+ 2 - 1
src/main/java/me/lortseam/completeconfig/data/Entry.java

@@ -80,7 +80,8 @@ public class Entry<T> extends EntryBase<T> implements DataPart {
         }
         if (field.isAnnotationPresent(ConfigEntry.Color.class)) {
             return new ColorEntry<>(field, parentObject, parentTranslation, field.getDeclaredAnnotation(ConfigEntry.Color.class).alphaMode());
-        } else if (typeClass == TextColor.class) {
+        }
+        if (typeClass == TextColor.class) {
             return new ColorEntry<>(field, parentObject, parentTranslation, false);
         }
         return new Entry<>(field, parentObject, parentTranslation);