From d0ecbfa6e361b354ef7074ba8194510fc257c352 Mon Sep 17 00:00:00 2001 From: Léa Gris Date: Thu, 8 Sep 2022 08:11:18 +0200 Subject: 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 --- src/main/java/gregtech/api/fluid/GT_FluidFactory.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/gregtech/api/fluid') 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; * * */ +@SuppressWarnings("unused") // API might legitimately expose unused methods within this local project's scope public class GT_FluidFactory { /** -- cgit