Jump to content

Recommended Posts

Posted (edited)

Whenever I try to start the server (client works fine), it crashes during the preInit phase of my mod. First, I thought I might've messed the proxies up, but nothing client-sided should be called server-side there. I have no idea why net/minecraft/client/renderer/entity/Render is being loaded serverside.

 

Crash log:

  Reveal hidden contents

 

Here are classes that might be relevant;

 

  • PotterMod.class (main mod class);
  Reveal hidden contents
  • PotterEntities.class;
  Reveal hidden contents
  • ModelTestbroom.class;
  Reveal hidden contents
  • RenderTestbroom.class
  Reveal hidden contents

Proxies;

  Reveal hidden contents

 

Basically, this mod currently only adds a flyable broom to the game that is steerable and locked to the players UUID once placed (so nobody else can ride it). If you need any other classes just tell me, I appreciate any help of you I can get. It's probably just some small thing causing this error and I just can't find it.

 

I am currently using forge 1.11.2-13.20.0.2262, but already tried using the latest build. (same error there)

Edited by MennoMax
Posted

Post the EntityTestbroom class, the issue may be there.

 

It's best to keep client-only code like model registration in dedicated client-only classes to help avoid issues like this, though PotterEntities.registerRenders probably isn't the cause of the issue.

 

Side note: RenderingRegistry#registerEntityRenderingHandler(Class<? Entity>, Render<? extends Entity>) is deprecated, call RenderingRegistry#registerEntityRenderingHandler(Class<T>, IRenderFactory<? super T>) in preInit instead.

  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

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