mirror of
https://github.com/GTNewHorizons/Eternal-Singularity.git
synced 2026-11-19 03:39:17 +00:00
easy mode =P
This commit is contained in:
1 parent
367d27f021
commit
22cbb8b96d
1 file changed
+5
-4
@@ -72,15 +72,16 @@ public class CommonProxy
|
||||
final int singularityCount = eternalSingularityRecipe.getInput().size();
|
||||
final boolean aboveTheLimit = singularityCount > 81;
|
||||
final boolean useCompoundSingularities = config.getBoolean("useCompoundSingularities", Configuration.CATEGORY_GENERAL, aboveTheLimit, "When useCompoundSingularities is Enabled, Basic Singularities will Need to be Crafted into Compound Singularities First.\n[If there are > 81 Basic Singularities, this Config Option will be Set to True Automatically]") || singularityCount > 81;
|
||||
final boolean easyMode = config.getBoolean("easyMode", Configuration.CATEGORY_GENERAL, false, "If this Config Option is Enabled, for Every 9 Singularities Used in the Eternal Singularity Recipe, You will Receive an Additional Eternal Singularity for the Recipe Output.");
|
||||
final int compoundMax = (int) Math.ceil((float) singularityCount / 9);
|
||||
if (useCompoundSingularities) {
|
||||
final int compoundMax = (int )Math.ceil((float) singularityCount / 9);
|
||||
GameRegistry.registerItem(compoundSingularityItem = new CompoundSingularityItem((int)compoundMax), "combined_singularity");
|
||||
GameRegistry.registerItem(compoundSingularityItem = new CompoundSingularityItem(compoundMax), "combined_singularity");
|
||||
final List<Object> eternalSingularityRecipeInputs = eternalSingularityRecipe.getInput();
|
||||
for (int i = 0; i < compoundMax; i++) {
|
||||
final ShapelessOreRecipe compoundRecipe = new ShapelessOreRecipe(new ItemStack(compoundSingularityItem, 1, i));
|
||||
for (int s = 0; s < 9; s++) {
|
||||
final int pos = 9 * i + s;
|
||||
if (pos > singularityCount -1)
|
||||
if (pos > singularityCount - 1)
|
||||
break;
|
||||
final Object input = eternalSingularityRecipeInputs.get(pos);
|
||||
if (!(input instanceof ItemStack))
|
||||
@@ -96,6 +97,6 @@ public class CommonProxy
|
||||
}
|
||||
if (config.hasChanged())
|
||||
config.save();
|
||||
Grinder.catalyst.getInput().add(new ItemStack(EternalSingularityItem.instance));
|
||||
Grinder.catalyst.getInput().add(new ItemStack(EternalSingularityItem.instance, easyMode ? compoundMax : 1));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user