diff --git a/src/main/java/team/chisel/Chisel.java b/src/main/java/team/chisel/Chisel.java index a6a460c5..e7191ee4 100644 --- a/src/main/java/team/chisel/Chisel.java +++ b/src/main/java/team/chisel/Chisel.java @@ -10,10 +10,6 @@ import net.minecraftforge.common.config.Configuration; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import com.cricketcraft.chisel.api.ChiselAPIProps; -import com.cricketcraft.chisel.api.Statistics; -import com.cricketcraft.chisel.api.carving.CarvableHelper; - import team.chisel.block.BlockCarvable; import team.chisel.carving.Carving; import team.chisel.compat.Compatibility; @@ -22,7 +18,6 @@ import team.chisel.compat.fmp.FMPCompat; import team.chisel.config.Configurations; import team.chisel.entity.EntityChiselSnowman; import team.chisel.init.ChiselBlocks; -import com.cricketcraft.chisel.api.ChiselTabs; import team.chisel.init.TabsInit; import team.chisel.item.ItemCarvable; import team.chisel.item.chisel.ChiselController; @@ -31,6 +26,11 @@ import team.chisel.network.PacketHandler; import team.chisel.proxy.CommonProxy; import team.chisel.utils.General; import team.chisel.world.GeneratorChisel; + +import com.cricketcraft.chisel.api.ChiselAPIProps; +import com.cricketcraft.chisel.api.Statistics; +import com.cricketcraft.chisel.api.carving.CarvableHelper; + import cpw.mods.fml.client.event.ConfigChangedEvent; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.FMLLog; @@ -122,6 +122,7 @@ public class Chisel { @EventHandler public void preInit(FMLPreInitializationEvent event) { + FMLCommonHandler.instance().registerCrashCallable(new ChiselCrashCallable()); File configFile = event.getSuggestedConfigurationFile(); Configurations.configExists = configFile.exists(); diff --git a/src/main/java/team/chisel/ChiselCrashCallable.java b/src/main/java/team/chisel/ChiselCrashCallable.java new file mode 100644 index 00000000..510dd2ef --- /dev/null +++ b/src/main/java/team/chisel/ChiselCrashCallable.java @@ -0,0 +1,17 @@ +package team.chisel; + +import cpw.mods.fml.common.ICrashCallable; + +public class ChiselCrashCallable implements ICrashCallable { + + @Override + public String call() throws Exception { + return "Errors like \"[FML]: Unable to lookup ...\" are NOT the cause of this crash. " + + "You can safely ignore these errors. And update forge while you're at it."; + } + + @Override + public String getLabel() { + return Chisel.MOD_NAME; + } +}