mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-10-26 14:24:40 +00:00
#168 Fixed crash when using Java 1.6
This commit is contained in:
1 parent
bf781696cf
commit
b0b020c65b
1 file changed
+5
-1
@@ -204,7 +204,11 @@ public class SagMillRecipeHandler extends TemplateRecipeHandler {
|
||||
}
|
||||
int num1 = o1.numTargetOuput;
|
||||
int num2 = o2.numTargetOuput;
|
||||
return -Integer.compare(num1, num2);
|
||||
return -compare(num1, num2);
|
||||
}
|
||||
|
||||
public int compare(int x, int y) {
|
||||
return (x < y) ? -1 : ((x == y) ? 0 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user