#168 Fixed crash when using Java 1.6

This commit is contained in:
CrazyPants committed 2013-10-09 08:29:50 +08:00
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);
}
}