Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 authored Feb 16, 2024
1 parent 2539663 commit 729ff91
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import gregtech.api.unification.ore.OrePrefix;

import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;

import com.google.common.collect.ImmutableList;
Expand Down Expand Up @@ -73,8 +74,11 @@ public MaterialTree(Material material) {
}

List<FluidStack> matFluidsStack = new ArrayList<>();
if (material.getFluid() != null) {
matFluidsStack.add(material.getFluid(1000));
if (material.hasProperty(PropertyKey.FLUID)) {
Fluid fluid = material.getFluid();
if (fluid != null) {
matFluidsStack.add(new FluidStack(fluid, 1000));
}
}
this.fluidInputs.add(matFluidsStack);

Expand Down

0 comments on commit 729ff91

Please sign in to comment.