Skip to content

Commit

Permalink
fix fluid colors in top with new system
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 committed Dec 2, 2023
1 parent 2e97c3f commit 58b9139
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gregtech/api/fluids/FluidBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ private static int convertViscosity(double viscosity) {

// register cross mod compat for colors
if (Loader.isModLoaded(GTValues.MODID_TOP_ADDONS)) {
Colors.FLUID_NAME_COLOR_MAP.put(name, color);
int displayColor = isColorEnabled || material == null ? color : material.getMaterialRGB();
Colors.FLUID_NAME_COLOR_MAP.put(name, displayColor);
}

return fluid;
Expand Down

0 comments on commit 58b9139

Please sign in to comment.