Browse Source

Remove unnecessary else

Lortseam 4 năm trước cách đây
mục cha
commit
d329b6fa77
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);