Skip to content

Commit

Permalink
Fix plasma temps all being the default temp (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALongStringOfNumbers authored Dec 6, 2023
1 parent 62e5fec commit 071793c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/gregtech/api/fluids/FluidBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,12 @@ private void determineTemperature(@Nullable Material material) {
yield ROOM_TEMPERATURE;
}
case GAS -> ROOM_TEMPERATURE;
case PLASMA -> BASE_PLASMA_TEMPERATURE;
case PLASMA -> {
if (material.hasFluid()) {
yield BASE_PLASMA_TEMPERATURE + material.getFluid().getTemperature();
}
yield BASE_PLASMA_TEMPERATURE;
}
};
} else {
temperature = property.getBlastTemperature() + switch (state) {
Expand Down

0 comments on commit 071793c

Please sign in to comment.