Skip to content

Commit

Permalink
Fixed milk crash (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC authored Oct 13, 2024
1 parent 322ec43 commit ff0b206
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/gregtechceu/gtceu/common/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@
public class CommonProxy {

public CommonProxy() {
ForgeMod.enableMilkFluid();

// used for forge events (ClientProxy + CommonProxy)
IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus();
eventBus.register(this);
Expand Down Expand Up @@ -127,6 +125,7 @@ public static void init() {
GTCompassSections.init();
GTCompassNodes.init();
GTCovers.init();
ForgeMod.enableMilkFluid();
GTFluids.init();
GTCreativeModeTabs.init();
GTBlocks.init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public class GTFluids {
public static void init() {
handleNonMaterialFluids(GTMaterials.Water, Fluids.WATER);
handleNonMaterialFluids(GTMaterials.Lava, Fluids.LAVA);
handleNonMaterialFluids(GTMaterials.Milk, ForgeMod.MILK.get());
if (ForgeMod.MILK.isPresent())
handleNonMaterialFluids(GTMaterials.Milk, ForgeMod.MILK.get());
REGISTRATE.creativeModeTab(() -> GTCreativeModeTabs.MATERIAL_FLUID);
// register fluids for materials
for (MaterialRegistry registry : GTCEuAPI.materialManager.getRegistries()) {
Expand Down

0 comments on commit ff0b206

Please sign in to comment.