diff options
author | miozune <miozune@gmail.com> | 2023-01-29 02:49:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 18:49:38 +0100 |
commit | 14d80f41d96ac72170be52d7c65e0dd1002cc2e3 (patch) | |
tree | 0af963e27d5d94bfcca433ea80b6d09dfd19fd33 /src/main/java/com | |
parent | f2cf70f795e6a585c9b2595856d1e9be0f97e4be (diff) | |
download | GT5-Unofficial-14d80f41d96ac72170be52d7c65e0dd1002cc2e3.tar.gz GT5-Unofficial-14d80f41d96ac72170be52d7c65e0dd1002cc2e3.tar.bz2 GT5-Unofficial-14d80f41d96ac72170be52d7c65e0dd1002cc2e3.zip |
Fix chance not shown on NEI with culture transformation recipe (#275)
Former-commit-id: f9be5f2722bda610635759de68551803ed8993a7
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java index 9774620098..a4bd7cd792 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java @@ -46,6 +46,7 @@ import gregtech.api.util.GT_Utility; import gregtech.common.items.behaviors.Behaviour_DataOrb; import java.lang.reflect.Field; import java.util.Map; +import java.util.Objects; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidRegistry; @@ -152,7 +153,7 @@ public class AdditionalRecipes { BioData.getBioDataFromNBTTag(stack.getTagCompound().getCompoundTag("DNA")); BioData Plasmid = BioData.getBioDataFromNBTTag(stack.getTagCompound().getCompoundTag("Plasmid")); - if (DNA.getName() != Plasmid.getName()) { + if (!Objects.equals(DNA.getName(), Plasmid.getName())) { sBiolab.addFakeRecipe( true, new ItemStack[] { @@ -162,7 +163,7 @@ public class AdditionalRecipes { }, new ItemStack[] {stack, ItemList.Cell_Empty.get(1L)}, BioItemList.mBioLabParts[3], - new int[] {10000, 10000}, + new int[] {Plasmid.getChance(), 10000}, new FluidStack[] {FluidRegistry.getFluidStack("ic2distilledwater", 1000)}, null, 500, |