aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/nei
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2019-10-13 21:54:43 +0100
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2019-10-13 21:54:43 +0100
commit82f4a138efb59d8fdc4a492a190d3c8d7c53fbff (patch)
tree63acd44e8f60099df9ab3570eb3a083654251cd4 /src/Java/gtPlusPlus/nei
parent9d467e9912c8dbe8567e2925c4a5c538c0be5630 (diff)
downloadGT5-Unofficial-82f4a138efb59d8fdc4a492a190d3c8d7c53fbff.tar.gz
GT5-Unofficial-82f4a138efb59d8fdc4a492a190d3c8d7c53fbff.tar.bz2
GT5-Unofficial-82f4a138efb59d8fdc4a492a190d3c8d7c53fbff.zip
+ Added Round-Robinator recipes.
% Adjusted Zirconium Carbide tier, and changed the materials used for LV tiered recipes. % Finished work on the Round-Robinator logic. $ Removed PSS log spam. $ Many minor bug fixes.
Diffstat (limited to 'src/Java/gtPlusPlus/nei')
-rw-r--r--src/Java/gtPlusPlus/nei/DecayableRecipeHandler.java28
-rw-r--r--src/Java/gtPlusPlus/nei/GT_NEI_MultiBlockHandler.java2
2 files changed, 28 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/nei/DecayableRecipeHandler.java b/src/Java/gtPlusPlus/nei/DecayableRecipeHandler.java
index b5f5fa7989..dae1a663d7 100644
--- a/src/Java/gtPlusPlus/nei/DecayableRecipeHandler.java
+++ b/src/Java/gtPlusPlus/nei/DecayableRecipeHandler.java
@@ -220,7 +220,8 @@ public class DecayableRecipeHandler extends TemplateRecipeHandler {
@Override
public int compareTo(CachedRecipe o) {
- if (o instanceof DecayableRecipeNEI) {
+ boolean b = DecayableRecipeNEI.class.isInstance(o);
+ if (b) {
DecayableRecipeNEI p = (DecayableRecipeNEI) o;
if (p.time > this.time) {
return 1;
@@ -232,5 +233,30 @@ public class DecayableRecipeHandler extends TemplateRecipeHandler {
}
return 0;
}
+
+ @Override
+ public boolean equals(Object obj) {
+ if (obj != null) {
+ if (DecayableRecipeNEI.class.isInstance(obj)) {
+ DecayableRecipeNEI p = (DecayableRecipeNEI) obj;
+ if (p != null) {
+ // Time check first to keep it simple and not unbox the Recipes.
+ if (p.time == this.time) {
+ ItemStack aInput = p.input.item;
+ ItemStack aOutput = p.output.item;
+ if (GT_Utility.areStacksEqual(aInput, this.input.item, true)) {
+ if (GT_Utility.areStacksEqual(aOutput, this.output.item, true)) {
+ return true;
+ }
+ }
+ }
+ }
+
+ }
+ }
+ return false;
+ }
+
+
}
} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/nei/GT_NEI_MultiBlockHandler.java b/src/Java/gtPlusPlus/nei/GT_NEI_MultiBlockHandler.java
index 6612ab703f..e3c980e6a4 100644
--- a/src/Java/gtPlusPlus/nei/GT_NEI_MultiBlockHandler.java
+++ b/src/Java/gtPlusPlus/nei/GT_NEI_MultiBlockHandler.java
@@ -928,7 +928,7 @@ extends TemplateRecipeHandler {
}
- public class recipeCompare implements Comparator<GT_Recipe> {
+ public class RecipeCompare implements Comparator<GT_Recipe> {
public int compare(GT_Recipe a, GT_Recipe b) {
if (a.mEUt != b.mEUt) {
return a.mEUt - b.mEUt;