diff options
author | Léa Gris <lea.gris@noiraude.net> | 2022-09-08 08:11:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 08:11:18 +0200 |
commit | d0ecbfa6e361b354ef7074ba8194510fc257c352 (patch) | |
tree | 09bfcac07d604060d115c9b37fb724c3296ca9f6 /src/main/java/gregtech/api/fluid/GT_FluidFactory.java | |
parent | f14ab9d942ee11aff20f5d328b57d26c77c96cb7 (diff) | |
download | GT5-Unofficial-d0ecbfa6e361b354ef7074ba8194510fc257c352.tar.gz GT5-Unofficial-d0ecbfa6e361b354ef7074ba8194510fc257c352.tar.bz2 GT5-Unofficial-d0ecbfa6e361b354ef7074ba8194510fc257c352.zip |
fix(API): GT_Fluid (#1349)
* fix(API): GT_Fluid
- Fix: Use registeredFluid instead of GT_Fluid to configure Materials and containers to prevent crashes when retrieving fluids referrences from those.
- Impr: Adjust fluid luminosity computation to better fit with Tungsten as maximum
- Impr: Remove transparency from the fluid.molten.autogenerated.png texture to prevent molten materials to appear dilluted.
* ./gradlew :spotlessApply
* rev(comment): address review comment from @Glease
rev: https://github.com/GTNewHorizons/GT5-Unofficial/pull/1349#pullrequestreview-1098651647
fix: Logic to handle working with own registered fluids and
already registered fluids.
imp: Some IGT_Fluid methods requires the fluid to be registered,
throws an IllegalStateException on use at an unregistered fluid.
imp: Normalizes @inheritDoc no additionnal text allowed
Diffstat (limited to 'src/main/java/gregtech/api/fluid/GT_FluidFactory.java')
-rw-r--r-- | src/main/java/gregtech/api/fluid/GT_FluidFactory.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/fluid/GT_FluidFactory.java b/src/main/java/gregtech/api/fluid/GT_FluidFactory.java index 0db1aec7e6..4aa39095ec 100644 --- a/src/main/java/gregtech/api/fluid/GT_FluidFactory.java +++ b/src/main/java/gregtech/api/fluid/GT_FluidFactory.java @@ -29,6 +29,7 @@ import net.minecraftforge.fluids.FluidRegistry; * </li> * </ol> */ +@SuppressWarnings("unused") // API might legitimately expose unused methods within this local project's scope public class GT_FluidFactory { /** |