From 55018645daa2f6da4e4e3fadee0098412d84863f Mon Sep 17 00:00:00 2001 From: boubou19 Date: Mon, 10 Aug 2026 20:16:13 +0200 Subject: [PATCH] CellType.VALUES --- .../java/com/glodblock/github/common/storage/CellType.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/glodblock/github/common/storage/CellType.java b/src/main/java/com/glodblock/github/common/storage/CellType.java index 871aeb256..f08227a37 100644 --- a/src/main/java/com/glodblock/github/common/storage/CellType.java +++ b/src/main/java/com/glodblock/github/common/storage/CellType.java @@ -19,6 +19,8 @@ public enum CellType { Cell4096kPart(6, AEFeature.StorageCells), Cell16384kPart(7, AEFeature.StorageCells); + public static final CellType[] VALUES = values(); + private final EnumSet features; private int damageValue; private Item itemInstance; @@ -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) {