Skip to content

Instantly share code, notes, and snippets.

@tterrag1098
Last active June 28, 2017 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tterrag1098/00c18845421aaca4585bdaf1c0a8b101 to your computer and use it in GitHub Desktop.
Save tterrag1098/00c18845421aaca4585bdaf1c0a8b101 to your computer and use it in GitHub Desktop.
"waldo" is never reported, instead "wilma" is shown in the crash log, even though "waldo" is raised first.
public class ExceptionInDependencyTest {
@Mod(modid = "dependency", name = "Dependency", version = "1.0.0")
public static class Dependency {
@Mod.EventHandler
public void init(FMLPreInitializationEvent event) {
throw new RuntimeException("waldo");
}
}
@Mod(modid = "dependent", name = "Dependent", version = "1.0.0", dependencies = "required-after:dependency")
@Mod.EventBusSubscriber
public static class Dependent {
@SubscribeEvent
public static void register(RegistryEvent.Register<Block> event) {
throw new RuntimeException("wilma");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment