mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
also holy shit the whitespace changes, intelliJ wanted to optimize the imports and refactored a ton of whitespace in the process.
33 lines
700 B
Java
33 lines
700 B
Java
package com.hbm.util;
|
|
|
|
import com.hbm.inventory.recipes.loader.SerializableRecipe;
|
|
import cpw.mods.fml.common.FMLCommonHandler;
|
|
import cpw.mods.fml.common.ICrashCallable;
|
|
|
|
public class CrashHelper {
|
|
|
|
public static void init() {
|
|
FMLCommonHandler.instance().registerCrashCallable(new CrashCallableRecipe());
|
|
}
|
|
|
|
public static class CrashCallableRecipe implements ICrashCallable {
|
|
|
|
@Override
|
|
public String getLabel() {
|
|
return "NTM Modified recipes:";
|
|
}
|
|
|
|
@Override
|
|
public String call() throws Exception {
|
|
|
|
String call = "";
|
|
|
|
for(SerializableRecipe rec : SerializableRecipe.recipeHandlers) {
|
|
if(rec.modified) call += "\n\t\t" + rec.getFileName();
|
|
}
|
|
|
|
return call;
|
|
}
|
|
}
|
|
}
|