Skip to content

Commit d679197

Browse files
committed
Make pipe color order match vanilla dye order
1 parent 7048dbc commit d679197

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/main/java/aztech/modern_industrialization/compat/ae2/MIAEAddon.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private static void registerMEPipeType(PipeColor color) {
116116
pipeId,
117117
prop -> new PipeItem(prop, type, new MENetworkData()),
118118
MIPipes.ITEM_MODEL_GENERATOR,
119-
SortOrder.PIPES);
119+
SortOrder.PIPES.and(color.ordinal()));
120120
MIPipes.INSTANCE.register(type, itemDef::asItem);
121121
TagsToGenerate.generateTag(MITags.ME_WIRES, itemDef, "ME Wires");
122122
}

src/main/java/aztech/modern_industrialization/pipes/MIPipes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private void registerFluidPipeType(PipeColor color) {
117117
pipeId,
118118
prop -> new PipeItem(prop, type, new FluidNetworkData(FluidVariant.blank())),
119119
ITEM_MODEL_GENERATOR,
120-
SortOrder.PIPES);
120+
SortOrder.PIPES.and(color.ordinal()));
121121
register(type, itemDef::asItem);
122122
TagsToGenerate.generateTag(MITags.FLUID_PIPES, itemDef, "Fluid Pipes");
123123
}
@@ -130,7 +130,7 @@ private void registerItemPipeType(PipeColor color) {
130130
pipeId,
131131
prop -> new PipeItem(prop, type, new ItemNetworkData()),
132132
ITEM_MODEL_GENERATOR,
133-
SortOrder.PIPES);
133+
SortOrder.PIPES.and(color.ordinal()));
134134
register(type, itemDef::asItem);
135135
TagsToGenerate.generateTag(MITags.ITEM_PIPES, itemDef, "Item Pipes");
136136
}

src/main/java/aztech/modern_industrialization/pipes/PipeColor.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@
2626
public enum PipeColor {
2727
REGULAR(14599002),
2828
WHITE("White", "white", 16383998),
29+
LIGHT_GRAY("Light Gray", "light_gray", 10329495),
30+
GRAY("Gray", "gray", 4673362),
31+
BLACK("Black", "black", 1908001),
32+
BROWN("Brown", "brown", 8606770),
33+
RED("Red", "red", 11546150),
2934
ORANGE("Orange", "orange", 16351261),
30-
MAGENTA("Magenta", "magenta", 13061821),
31-
LIGHT_BLUE("Light Blue", "light_blue", 3847130),
3235
YELLOW("Yellow", "yellow", 16701501),
3336
LIME("Lime", "lime", 8439583),
34-
PINK("Pink", "pink", 15961002),
35-
GRAY("Gray", "gray", 4673362),
36-
LIGHT_GRAY("Light Gray", "light_gray", 10329495),
37+
GREEN("Green", "green", 6192150),
3738
CYAN("Cyan", "cyan", 1481884),
38-
PURPLE("Purple", "purple", 8991416),
39+
LIGHT_BLUE("Light Blue", "light_blue", 3847130),
3940
BLUE("Blue", "blue", 3949738),
40-
BROWN("Brown", "brown", 8606770),
41-
GREEN("Green", "green", 6192150),
42-
RED("Red", "red", 11546150),
43-
BLACK("Black", "black", 1908001);
41+
PURPLE("Purple", "purple", 8991416),
42+
MAGENTA("Magenta", "magenta", 13061821),
43+
PINK("Pink", "pink", 15961002);
4444

4545
public final int color;
4646
public final String englishName;

0 commit comments

Comments
 (0)