2020-07-23 18:44:57 +03:00
fix
2019-12-07 22:08:53 +02:00
2019-12-22 01:47:33 +02:00
2020-07-23 18:44:57 +03:00
2019-01-12 20:31:19 -05:00
2020-01-15 10:43:04 +02:00
2019-12-22 16:09:35 +02:00
2020-01-15 10:22:04 +02:00
2019-08-31 15:49:49 -04:00
2019-08-31 15:49:49 -04:00
2019-12-05 23:03:14 +02:00
2019-12-05 22:38:52 +02:00
2019-12-07 01:56:16 +02:00
2019-12-07 01:56:16 +02:00
2020-07-23 18:44:57 +03:00
2019-12-31 16:49:07 +02:00
2019-12-15 20:45:52 +02:00

Not Enough Crashes

Discord CurseForge

Not Enough Crashes is a fork of TooManyCrashes, a port of VanillaFix's crash improvements to Fabric, for Minecraft 1.15+. The original license is available at LICENSE_TMC.

Features:

  • Special crash screen when game fails to start (not in dev).
  • Deobfuscates stack trace (not in dev).
  • Allows going back to the title screen after crashing in game (in dev too).
  • Additional NBT information of entities and block entities in crash reports (in dev too).

Using the Not Enough Crashes API

You can include the 4KB Not Enough Crashes API to reset any mod state that needs to be cleared by running disposing code whenever the game crashes. You don't need to check if Not Enough Crashes itself is present.

Gradle Setup

dependencies {
    modImplementation ("com.lettuce.fudge:notenoughcrashes-api:1.1.0")
    include ("com.lettuce.fudge:notenoughcrashes-api:1.1.0")
}

Code

class MyModState {
    private static List<String> dataThatIWantToReset = new ArrayList<>();
    
    static {
        MinecraftCrashes.onEveryCrash(() -> dataThatIWantToReset.clear());
    }
}

You can also use MinecraftCrashes.onNextCrash to only call the code once in the next crash. For more information consult the javadocs of MinecraftCrashes.

The mod is useful in development environments too:

Using Not Enough Crashes in a development environment

repositories {
    // [...]
    jcenter()
}
dependencies {
    modRuntime ("com.lettuce.fudge:notenoughcrashes:2.0.0+1.15.1")
}
S
Description
A mod that makes crashes so pleasant, you can't have enough of them!
Readme MIT
8.8 MiB
Languages
Java 100%