mirror of
https://github.com/GTNewHorizons/Eternal-Singularity.git
synced 2026-11-22 12:59:52 +00:00
This commit is contained in:
1 parent
c02fcba4f1
commit
371c8a53f6
10 files changed
+30
-386
No files matched your search
@@ -29,7 +29,7 @@ import singulariteam.eternalsingularity.item.EternalSingularityItem;
|
||||
public class CommonProxy {
|
||||
|
||||
private static ShapelessOreRecipe eternalSingularityRecipe = null;
|
||||
private static final Set<Class<?>> classSet = new HashSet<>();
|
||||
private static Set<Class<?>> classSet = new HashSet<>();
|
||||
protected CompoundSingularityItem compoundSingularityItem = null;
|
||||
private File configFile;
|
||||
|
||||
@@ -63,7 +63,6 @@ public class CommonProxy {
|
||||
return eternalSingularityRecipe;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void postInit() {
|
||||
if (classSet.isEmpty() || craftingOnly) return;
|
||||
final List<ItemStack> singularities = new ArrayList<>();
|
||||
@@ -97,7 +96,7 @@ public class CommonProxy {
|
||||
new ItemStack(
|
||||
EternalSingularityItem.instance,
|
||||
easyMode ? MathHelper.clamp_int(compoundMax, 1, 64) : 1))).getInput().addAll(singularities);
|
||||
if (useCompoundSingularities) {
|
||||
if (true) {
|
||||
GameRegistry.registerItem(
|
||||
compoundSingularityItem = new CompoundSingularityItem(compoundMax),
|
||||
"combined_singularity");
|
||||
@@ -112,7 +111,7 @@ public class CommonProxy {
|
||||
if (!(input instanceof ItemStack)) continue;
|
||||
compoundRecipe.getInput().add(((ItemStack) input).copy());
|
||||
}
|
||||
if (compoundRecipe.getInput().size() > 0) GameRegistry.addRecipe(compoundRecipe);
|
||||
if (!compoundRecipe.getInput().isEmpty()) GameRegistry.addRecipe(compoundRecipe);
|
||||
}
|
||||
eternalSingularityRecipeInputs.clear();
|
||||
for (int i = 0; i < compoundMax; i++)
|
||||
@@ -120,5 +119,7 @@ public class CommonProxy {
|
||||
}
|
||||
ExtremeCraftingManager.getInstance().getRecipeList().add(eternalSingularityRecipe);
|
||||
Grinder.catalyst.getInput().add(new ItemStack(EternalSingularityItem.instance));
|
||||
|
||||
classSet = null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user