mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-22 05:02:37 +00:00
Adding error check to Beegonia to prevent Extra Bees from throwing NoSuchMethodError and crashing. Fixes #105.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user