Adding error check to Beegonia to prevent Extra Bees from throwing NoSuchMethodError and crashing. Fixes #105.

This commit is contained in:
MysteriousAges committed 2015-10-02 22:40:43 -07:00
1 parent 2503c94b83
commit eacb9f2609
1 file changed
+7 -2
@@ -66,8 +66,13 @@ public class SubTileBeegonia extends SubTileGenerating {
return 0;
}
else {
int halfComplexity = species.getComplexity() / 2;
return (halfComplexity >= 1) ? halfComplexity : 1;
try {
int halfComplexity = species.getComplexity() / 2;
return (halfComplexity >= 1) ? halfComplexity : 1;
}
catch (NoSuchMethodError error) {
return 1;
}
}
}