diff options
author | miozune <miozune@gmail.com> | 2024-09-09 09:21:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 02:21:25 +0200 |
commit | c43cdd94e65c6e19d8380d1b2c87ce19d5d49011 (patch) | |
tree | 67e104846c6122fdc2eaf2dcc29717facd6a51df /src/main/java/bartworks | |
parent | b15f89a14827bdb621d45745d165e1caf4265fef (diff) | |
download | GT5-Unofficial-c43cdd94e65c6e19d8380d1b2c87ce19d5d49011.tar.gz GT5-Unofficial-c43cdd94e65c6e19d8380d1b2c87ce19d5d49011.tar.bz2 GT5-Unofficial-c43cdd94e65c6e19d8380d1b2c87ce19d5d49011.zip |
Remove findRecipe methods (#3084)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/bartworks')
-rw-r--r-- | src/main/java/bartworks/common/tileentities/multis/MTEWindmill.java | 6 | ||||
-rw-r--r-- | src/main/java/bartworks/common/tileentities/tiered/GT_MetaTileEntity_RadioHatch.java | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/main/java/bartworks/common/tileentities/multis/MTEWindmill.java b/src/main/java/bartworks/common/tileentities/multis/MTEWindmill.java index e60c147b70..7069e7533d 100644 --- a/src/main/java/bartworks/common/tileentities/multis/MTEWindmill.java +++ b/src/main/java/bartworks/common/tileentities/multis/MTEWindmill.java @@ -286,8 +286,10 @@ public class MTEWindmill extends MTEEnhancedMultiBlockBase<MTEWindmill> if (this.mOutputItems == null) this.mOutputItems = new ItemStack[2]; - GTRecipe tRecipe = RecipeMaps.maceratorRecipes - .findRecipe(this.getBaseMetaTileEntity(), false, false, V[1], null, itemStack); + GTRecipe tRecipe = RecipeMaps.maceratorRecipes.findRecipeQuery() + .items(itemStack) + .voltage(V[1]) + .find(); if (tRecipe == null) { return false; } diff --git a/src/main/java/bartworks/common/tileentities/tiered/GT_MetaTileEntity_RadioHatch.java b/src/main/java/bartworks/common/tileentities/tiered/GT_MetaTileEntity_RadioHatch.java index 8e752711ea..b7e4e966fb 100644 --- a/src/main/java/bartworks/common/tileentities/tiered/GT_MetaTileEntity_RadioHatch.java +++ b/src/main/java/bartworks/common/tileentities/tiered/GT_MetaTileEntity_RadioHatch.java @@ -212,12 +212,9 @@ public class GT_MetaTileEntity_RadioHatch extends MTEHatch implements RecipeMapW } if (this.lastRecipe == null || this.lastFail) { - this.lastRecipe = BartWorksRecipeMaps.radioHatchRecipes.findRecipe( - this.getBaseMetaTileEntity(), - false, - Integer.MAX_VALUE - 7, - null, - this.mInventory[0]); + this.lastRecipe = BartWorksRecipeMaps.radioHatchRecipes.findRecipeQuery() + .items(this.mInventory[0]) + .find(); if (this.lastRecipe == null) { this.lastFail = true; this.lastUsedItem = this.mInventory[0] == null ? null : this.mInventory[0].copy(); |