Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public enum CellType {
Cell4096kPart(6, AEFeature.StorageCells),
Cell16384kPart(7, AEFeature.StorageCells);

public static final CellType[] VALUES = values();

private final EnumSet<AEFeature> features;
private int damageValue;
private Item itemInstance;
Expand Down Expand Up @@ -53,7 +55,7 @@ public void setItemInstance(final Item itemInstance) {
}

public static EnumChatFormatting getTypeColor(int type) {
return getTypeColor(CellType.values()[type % CellType.values().length]);
return getTypeColor(CellType.VALUES[type % CellType.VALUES.length]);
}

public static EnumChatFormatting getTypeColor(CellType type) {
Expand Down