Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Fix something is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
wohaopa committed Apr 23, 2024
1 parent 22748bb commit 75520e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/github/wohaopa/GTNHModify/GT_Recipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void addRecipe(GT_Recipe recipe) {

public static void setDuration(GT_Recipe gtRecipe, int aDuration) {
// gtRecipe.mDuration = aDuration;
gtRecipe.mDuration = 1;
gtRecipe.mDuration = aDuration == 0 ? 0 : 1;
}

public static void setInputs(GT_Recipe gtRecipe, ItemStack[] aInputs) {
Expand All @@ -42,7 +42,7 @@ public static void setOutputs(GT_Recipe gtRecipe, ItemStack[] aOutputs) {
gtRecipe.mOutputs = aOutputs;
for (ItemStack itemStack : aOutputs) {
if (itemStack == null) continue;
itemStack.stackSize = 64;
if (itemStack.stackSize < 64) itemStack.stackSize = 64;
}
}

Expand All @@ -59,12 +59,12 @@ public static void setFluidOutputs(GT_Recipe gtRecipe, FluidStack[] aOutputs) {

for (FluidStack fluidStack : aOutputs) {
if (fluidStack == null) continue;
fluidStack.amount = 64 * 144;
if (fluidStack.amount < 9216) fluidStack.amount = 9216;
}
}

public static void setEUt(GT_Recipe gtRecipe, int aEUt) {
// gtRecipe.mEUt = aEUt;
gtRecipe.mEUt = 1;
gtRecipe.mEUt = aEUt == 0 ? 0 : 1;
}
}

0 comments on commit 75520e2

Please sign in to comment.