Last active
June 28, 2017 03:28
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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