Skip to content

Commit

Permalink
Fix for null materials being entered into the washedIn pair (GregTech…
Browse files Browse the repository at this point in the history
  • Loading branch information
ALongStringOfNumbers authored Aug 21, 2021
1 parent e0d55c8 commit 713fd9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ public static void processCrushedOre(OrePrefix crushedPrefix, Material material,
OreDictUnifier.get(OrePrefix.dust, Materials.Stone))
.buildAndRegister();

if (property.getWashedIn() != null) {
if (property.getWashedIn().getKey() != null) {
Material washingByproduct = GTUtility.selectItemInList(3, material, property.getOreByProducts(), Material.class);
Pair<Material, Integer> washedInTuple = property.getWashedIn();
RecipeMaps.CHEMICAL_BATH_RECIPES.recipeBuilder()
.input(crushedPrefix, material)
.fluidInputs(washedInTuple.getKey().getFluid(washedInTuple.getRight()))
.fluidInputs(washedInTuple.getKey().getFluid(washedInTuple.getValue()))
.outputs(crushedPurifiedOre)
.chancedOutput(OreDictUnifier.get(OrePrefix.dust, washingByproduct, property.getByProductMultiplier()), 7000, 580)
.chancedOutput(OreDictUnifier.get(OrePrefix.dust, Materials.Stone), 4000, 650)
Expand Down

0 comments on commit 713fd9e

Please sign in to comment.