Jump to content

Code_Cube

Members
  • Posts

    2
  • Joined

  • Last visited

Code_Cube's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Ah, okay. Thank you for the clarification.
  2. Here is the relevant portion of my code: @Mod("sizecraft") @Mod.EventBusSubscriber(Dist.CLIENT) public class SizeCraftMod { // <Other mod code> @Mod.EventBusSubscriber(modid = "sizecraft", bus = Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { // <Other registry-related things> @SubscribeEvent public static void gatherData(GatherDataEvent event) { DataGenerator gen = event.getGenerator(); ExistingFileHelper helper = event.getExistingFileHelper(); // Trigger a nullptr exception so that we can know that this event handler is being called. ((GatherDataEvent) null).description(); if (event.includeServer()) { } if (event.includeClient()) { gen.addProvider(new HeldEntityItem.ModelProvider(gen, helper)); } } } } I intentionally added that line which should trigger a NullPointerException when the event handler is run. However, the game never crashes and no error is written to the console. I tried just doing a print statement earlier, but that did not show up either. I am basing my code on this file by LexManos which, if the commit message is to be believed, should work on 1.15.2, the same version I am running. Is there something I am missing?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.