From bd96592339bec180a12d9c4c25ecd19f101de52f Mon Sep 17 00:00:00 2001 From: IThundxr Date: Mon, 6 May 2024 17:36:23 -0400 Subject: [PATCH] Honey & Chocolate, the perfect combo Fix Honey buckets and Chocolate buckets not showing up in creative tabs Port of this commit: https://github.com/Fabricators-of-Create/Create/commit/446f693ca7fce1f88a6284162d65f0d32c93b2ab --- src/main/java/com/simibubi/create/AllFluids.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/simibubi/create/AllFluids.java b/src/main/java/com/simibubi/create/AllFluids.java index a4bea83ed..4e1e7f9b7 100644 --- a/src/main/java/com/simibubi/create/AllFluids.java +++ b/src/main/java/com/simibubi/create/AllFluids.java @@ -41,6 +41,9 @@ import net.minecraftforge.fluids.FluidType; import net.minecraftforge.fluids.ForgeFlowingFluid; public class AllFluids { + static { + REGISTRATE.setCreativeTab(AllCreativeModeTabs.BASE_CREATIVE_TAB); + } public static final FluidEntry POTION = REGISTRATE.virtualFluid("potion", PotionFluidType::new, PotionFluid::new) @@ -165,7 +168,7 @@ public class AllFluids { public int getTintColor(FluidState state, BlockAndTintGetter getter, BlockPos pos) { return TintedFluidType.this.getTintColor(state, getter, pos); } - + @Override public @NotNull Vector3f modifyFogColor(Camera camera, float partialTick, ClientLevel level, int renderDistance, float darkenWorldAmount, Vector3f fluidFogColor) { @@ -191,11 +194,11 @@ public class AllFluids { protected abstract int getTintColor(FluidStack stack); protected abstract int getTintColor(FluidState state, BlockAndTintGetter getter, BlockPos pos); - + protected Vector3f getCustomFogColor() { return null; } - + protected float getFogDistanceModifier() { return 1f; } @@ -235,12 +238,12 @@ public class AllFluids { public int getTintColor(FluidState state, BlockAndTintGetter world, BlockPos pos) { return 0x00ffffff; } - + @Override protected Vector3f getCustomFogColor() { return fogColor; } - + @Override protected float getFogDistanceModifier() { return fogDistance.get();