Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. public class ExceptionInDependencyTest {
  2. @Mod(modid = "dependency", name = "Dependency", version = "1.0.0")
  3. public static class Dependency {
  4. @Mod.EventHandler
  5. public void init(FMLPreInitializationEvent event) {
  6. throw new RuntimeException("waldo");
  7. }
  8. }
  9.  
  10. @Mod(modid = "dependent", name = "Dependent", version = "1.0.0", dependencies = "required-after:dependency")
  11. @Mod.EventBusSubscriber
  12. public static class Dependent {
  13. @SubscribeEvent
  14. public static void register(RegistryEvent.Register<Block> event) {
  15. throw new RuntimeException("wilma");
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement