Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.14.4] How to properly call OBJLoader.INSTANCE.addDomain


jun2040
 Share

Recommended Posts

I've been fiddling with OBJLoader for a week now and I keep getting the unable to load model error. I think the OBJLoader is not called properly because I used the tutorial from older versions. does anyone know how to call OBJLoader.INSTANCE.addDomain properly?

Link to comment
Share on other sites

In the <mod>.java file i have

FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);	


private void doClientStuff(final FMLClientSetupEvent event) {
        if (FMLEnvironment.dist.isDedicatedServer())
            return;

		
		Logger.info("Got game settings {}", event.getMinecraftSupplier().get().gameSettings);
		
		OBJLoader.INSTANCE.addDomain("<your mod name>");
		

	}

 

forget it, i see you have it

Edited by blinky000
dumb answer
Link to comment
Share on other sites

9 hours ago, jun2040 said:

does anyone know how to call OBJLoader.INSTANCE.addDomain properly?

You only call it on the client side, like so: 

private void doClientStuff(final FMLClientSetupEvent event) {
   ...
   OBJLoader.INSTANCE.addDomain({modid});
   ...
}

 

You can see how I did it here.

Edited by TheMikeste1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.